1 #ifndef ABLATELIBRARY_SOLUTIONERRORMONITOR_HPP
2 #define ABLATELIBRARY_SOLUTIONERRORMONITOR_HPP
4 #include <monitors/logs/log.hpp>
7 #include "utilities/mathUtilities.hpp"
13 enum class Scope { VECTOR, COMPONENT };
16 static PetscErrorCode MonitorError(TS ts, PetscInt step, PetscReal crtime, Vec u,
void* ctx);
19 const std::shared_ptr<logs::Log> log;
26 std::vector<PetscReal> ComputeError(TS ts, PetscReal time, Vec u);
35 std::ostream&
operator<<(std::ostream& os,
const SolutionErrorMonitor::Scope& v);
42 std::istream&
operator>>(std::istream& is, SolutionErrorMonitor::Scope& v);
Definition: monitor.hpp:12
Definition: solutionErrorMonitor.hpp:11
PetscMonitorFunction GetPetscFunction() override
Definition: solutionErrorMonitor.hpp:24
Norm
Definition: mathUtilities.hpp:272
Definition: boundarySolverMonitor.hpp:16
std::ostream & operator<<(std::ostream &os, const DmViewFromOptions::Scope &v)
Definition: dmViewFromOptions.cpp:76
std::istream & operator>>(std::istream &is, DmViewFromOptions::Scope &v)
Definition: dmViewFromOptions.cpp:87