|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <progress.hpp>
Public Member Functions | |
| ProgressReporter (ProgressCallback callback, std::vector< std::string > phases) | |
| void | begin (int step) |
| Timing | finish () |
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).
| hpfem::ProgressReporter::ProgressReporter | ( | ProgressCallback | callback, |
| std::vector< std::string > | phases | ||
| ) |
| void hpfem::ProgressReporter::begin | ( | int | step | ) |
| Cancelled | if the callback returns false. |
| Timing hpfem::ProgressReporter::finish | ( | ) |
| Cancelled | if the callback returns false for the final "done" event. |