#include <dmViewFromOptions.hpp>
Public Types | |
enum class | Scope { INITIAL , MONITOR } |
Public Member Functions | |
DmViewFromOptions (Scope scope, std::string options={}, const std::string &optionName={}) | |
DmViewFromOptions (std::string options={}, std::string optionName={}) | |
void | Register (std::shared_ptr< solver::Solver >) override |
PetscMonitorFunction | GetPetscFunction () override |
std::string | ToString () const override |
void | Modify (DM &) override |
Public Member Functions inherited from ablate::monitors::Monitor | |
virtual void * | GetContext () |
Additional Inherited Members | |
Protected Member Functions inherited from ablate::monitors::Monitor | |
std::shared_ptr< solver::Solver > | GetSolver () |
Static Protected Member Functions inherited from ablate::domain::modifiers::Modifier | |
static void | ReplaceDm (DM &originalDm, DM &replaceDm) |
This class replicates the functionality provided by PetscObjectViewFromOptions
If the options string is passed, an options object is created and set with the options If not set, options is assumed to the global values and the optionName should be used
|
explicit |
public constructor allow this monitor to set scope
scope | |
options | |
optionName |
|
explicit |
constructor without allowing the monitor to be set (Set to INITIAL by default)
options | |
optionName |
|
inlineoverridevirtual |
Return a function to be called after every time step. By default null is returned so this is never called
Reimplemented from ablate::monitors::Monitor.
|
overridevirtual |
Allow this monitor to also be used as modifier to save results
Implements ablate::domain::modifiers::Modifier.
|
overridevirtual |
Override this function to setup the monitor
solverIn |
Reimplemented from ablate::monitors::Monitor.
|
inlineoverridevirtual |