hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs
progress.hpp File Reference
#include <chrono>
#include <functional>
#include <map>
#include <string>
#include <vector>
#include "hpfem/core/error.hpp"
Include dependency graph for progress.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  hpfem::ProgressEvent
 A phase of a solve starting (or, with step == num_steps, the solve being done). More...
 
class  hpfem::Cancelled
 Thrown by a solve whose progress callback returned false. More...
 
class  hpfem::ProgressReporter
 

Namespaces

namespace  hpfem
 

Typedefs

using hpfem::ProgressCallback = std::function< bool(const ProgressEvent &)>
 
using hpfem::Timing = std::map< std::string, double >
 Wall-clock seconds per phase by name, plus "total".
 

Detailed Description

Progress reporting, cooperative cancellation and the timing breakdown of the problem classes (M15 F9). A solve runs through named phases (assembly, constraints, factorisation, solve, post); the callback of the setup is called when a phase starts and once more when the solve is done, and may cancel the run between phases by returning false, which makes the solve throw Cancelled. The seconds of every phase are returned with the solution.