ug4
time_integrator_observer_interface.h File Reference
#include <registry/class.h>

Go to the source code of this file.

Classes

class  ug::ITimeIntegratorObserver< TDomain, TAlgebra >
 Abstract base class for time integration observer. More...
 

Namespaces

 ug
 the ug namespace
 

Macros

#define DECLARE_STAGE_OBSERVER(name)
 

Macro Definition Documentation

◆ DECLARE_STAGE_OBSERVER

#define DECLARE_STAGE_OBSERVER (   name)
Value:
template <typename TDomain, typename TAlgebra>\
class ITimeIntegratorStageObserver_ ## name\
{\
public:\
typedef GridFunction<TDomain, TAlgebra> grid_function_type;\
\
virtual ~ITimeIntegratorStageObserver_ ## name() {}\
virtual bool name ## _action(SmartPtr<grid_function_type> u, int step, number time, number dt) = 0;\
};
location name
Definition: checkpoint_util.lua:128
double number
Definition: types.h:124

Any stage can be responded to by an observer. To decide at compile time, which stages an observer responds to, the observer needs to derive from a special StageObserver class for each stage it responds to.