18 #include "NamespaceHeader.H" 50 virtual void setUp(
AMR& a_AMR,
int a_interval);
88 return (&*a_lhs < &*a_rhs);
148 void setUp(
AMR& a_AMR,
int a_interval);
166 void setUp(
AMR& a_AMR,
int a_interval);
174 #include "NamespaceFooter.H" Definition: Scheduler.H:141
Definition: Scheduler.H:26
bool operator()(const RefCountedPtr< PeriodicFunction > &a_lhs, const RefCountedPtr< PeriodicFunction > &a_rhs) const
Definition: Scheduler.H:83
A reference-counting handle class.
Definition: RefCountedPtr.H:66
PeriodicFunction()
Default construction.
#define CH_assert(cond)
Definition: CHArray.H:37
std::map< RefCountedPtr< PeriodicFunction >, std::pair< Real, Real >, PeriodicFunctionLessThan > m_timeTriggeredFunctions
Definition: Scheduler.H:131
bool isNull() const
Definition: RefCountedPtr.H:223
std::string m_prefix
Definition: Scheduler.H:171
virtual void setUp(AMR &a_AMR, int a_interval)
Ordering operator for pointers to periodic functions.
Definition: Scheduler.H:81
virtual void conclude(int a_step, Real a_time)
Definition: Scheduler.H:33
virtual void operator()(int a_step, Real a_time)=0
Definition: Scheduler.H:160
double Real
Definition: REAL.H:33
Scheduler()
Default constructor. Makes an empty schedule.
virtual ~Scheduler()
Destructor.
virtual ~PeriodicFunction()
Destructor.
Framework for Berger-Oliger timestepping for AMR.
Definition: AMR.H:52
void schedule(RefCountedPtr< PeriodicFunction > a_function, int a_interval)
std::map< RefCountedPtr< PeriodicFunction >, int, PeriodicFunctionLessThan > m_stepTriggeredFunctions
Definition: Scheduler.H:128
std::string m_prefix
Definition: Scheduler.H:154
void execute(int a_step, Real a_time) const
PeriodicFunction & operator=(const PeriodicFunction &)