1 #ifndef ABLATELIBRARY_FIELDMONITOR_HPP
2 #define ABLATELIBRARY_FIELDMONITOR_HPP
6 #include "io/serializable.hpp"
17 std::shared_ptr<ablate::domain::Domain> monitorDomain =
nullptr;
21 std::shared_ptr<ablate::domain::SubDomain> monitorSubDomain =
nullptr;
28 [[nodiscard]]
const std::string&
GetId()
const override {
return monitorDomain->GetName(); }
41 void Register(std::string
id, std::shared_ptr<solver::Solver> solverIn, std::vector<std::shared_ptr<domain::FieldDescriptor>> fields);
49 PetscErrorCode
Save(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time)
override;
57 PetscErrorCode
Restore(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time)
override;
Definition: serializable.hpp:13
Definition: fieldMonitor.hpp:14
const std::string & GetId() const override
Definition: fieldMonitor.hpp:28
PetscErrorCode Restore(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override
Definition: fieldMonitor.cpp:42
void Register(std::shared_ptr< solver::Solver > solverIn) override
Definition: fieldMonitor.hpp:35
PetscErrorCode Save(PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override
Definition: fieldMonitor.cpp:37
Definition: monitor.hpp:12
virtual void Register(std::shared_ptr< solver::Solver > solverIn)
Definition: monitor.hpp:22
Definition: boundarySolverMonitor.hpp:16