On 2014-01-23 14:22, Anders Logg wrote:
Hi Dave,
There is no such connection, but one could "easily" be added. One
could think of ways for external applications to register callback
functions that get called by the progress bar whenever something
happens.
We already have this function in log.h:
void set_output_stream(std::ostream& out);
If would be natural to add something like
void set_progress_callback(ProgressCallback& progress_callback);
to which one sends in a subclass of a new class ProgressCallback with
a member function
void update(std::string identifier, double progress)
and then your subclass would take care of updating in your interface.
If this or something similar sounds useful, please register an issue
and I can try to add it.
--
Anders
On Tue, Jan 14, 2014 at 12:19:39PM -0800, David Bernstein wrote:
Hi Everyone, I’m involved in a C++ project which uses fenics to solve
a number of different PDEs. We’re writing an interface and I would
like to pass the fenics progress information (e.g., assembly and
solver progress)
In most cases, the most expensive step is the linear solve and I don't
see how a 0% ->100% type progress indicator could work for a linear
solver because the solver is not just a loop of a priori known size
(unlike assembly, where we know how cells need to be iterated over).
Garth
from fenics to the interface so that the user can see a progress
display.
So my question is how to get access to the internal progress bar that
fenics uses for reporting. I looked through the documentation
(briefly) but only found info about the Progress class, which is
something different. Is there a global Progress object similar to the
Parameters object?
Thanks,
Dave
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics