Hi Guys, Thanks for your responses. I guess I hadn’t thought that part about the linear solver through. Do any of the linear algebra backends provide a progress bar as part of their interface? (I’m guessing no, but I’m not familiar with them).
We can also use the output stream as Anders suggests and poll it periodically. This will provide some feedback to the user. A progress callback function would be nicer since polling will miss some events. I’ll register it as an issue in any case. Thanks, Dave On Jan 23, 2014, at 6:54 AM, Garth N. Wells <[email protected]> wrote: > 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
