hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::ProgressReporter Class Reference

#include <progress.hpp>

Public Member Functions

 ProgressReporter (ProgressCallback callback, std::vector< std::string > phases)
 
void begin (int step)
 
Timing finish ()
 

Detailed Description

Runs the phases of one solve: begin(i) closes the previous phase into the timing, reports phase i and throws Cancelled if the callback declines; finish() closes the last phase, reports "done" and returns the timing. Works without a callback (timing only).

Constructor & Destructor Documentation

◆ ProgressReporter()

hpfem::ProgressReporter::ProgressReporter ( ProgressCallback  callback,
std::vector< std::string >  phases 
)

Member Function Documentation

◆ begin()

void hpfem::ProgressReporter::begin ( int  step)
Exceptions
Cancelledif the callback returns false.

◆ finish()

Timing hpfem::ProgressReporter::finish ( )
Exceptions
Cancelledif the callback returns false for the final "done" event.

The documentation for this class was generated from the following file: