1 #ifndef ABLATELIBRARY_MONITOR_HPP
2 #define ABLATELIBRARY_MONITOR_HPP
6 #include "solver/solver.hpp"
10 typedef PetscErrorCode (*PetscMonitorFunction)(TS ts, PetscInt steps, PetscReal time, Vec u,
void* mctx);
14 std::shared_ptr<solver::Solver> solver;
22 virtual void Register(std::shared_ptr<solver::Solver> solverIn) { solver = std::move(solverIn); }
36 std::shared_ptr<solver::Solver> GetSolver() {
return solver; }
Definition: monitor.hpp:12
virtual void Register(std::shared_ptr< solver::Solver > solverIn)
Definition: monitor.hpp:22
virtual void * GetContext()
Definition: monitor.hpp:33
virtual PetscMonitorFunction GetPetscFunction()
Definition: monitor.hpp:28
Definition: boundarySolverMonitor.hpp:16