Chombo + EB  3.2
Public Member Functions | Private Attributes | List of all members
CheckpointPeriodicFunction Class Reference

#include <Scheduler.H>

Inheritance diagram for CheckpointPeriodicFunction:
Inheritance graph

Public Member Functions

 CheckpointPeriodicFunction (const std::string &a_prefix)
void setUp (AMR &a_AMR, int a_interval)
void operator() (int a_step, Real a_time)
- Public Member Functions inherited from Scheduler::PeriodicFunction
 PeriodicFunction ()
 Default construction. More...
virtual ~PeriodicFunction ()
 Destructor. More...
virtual void setUp (AMR &a_AMR, Real a_interval)
virtual void conclude (int a_step, Real a_time)

Private Attributes

std::string m_prefix

Detailed Description

This placebo allows one to enable periodic checkpoints using the Scheduler mechanism.

Constructor & Destructor Documentation

◆ CheckpointPeriodicFunction()

CheckpointPeriodicFunction::CheckpointPeriodicFunction ( const std::string &  a_prefix)

Member Function Documentation

◆ setUp()

void CheckpointPeriodicFunction::setUp ( AMR a_AMR,
int  a_interval 

Override this method to prepare the periodic function to interact with the given AMR object when set to an interval in time steps. By default this does nothing.

a_AMRThe AMR object with which this function will interact during periodic function calls.
a_intervalThe interval (in steps) at which the periodic function is to be called.

Reimplemented from Scheduler::PeriodicFunction.

◆ operator()()

void CheckpointPeriodicFunction::operator() ( int  a_step,
Real  a_time 

Override this operator to define the behavior of the periodic function.

a_stepThe step at which the function is called.
a_timeThe simulation time at which the function is called.

Implements Scheduler::PeriodicFunction.

Member Data Documentation

◆ m_prefix

std::string CheckpointPeriodicFunction::m_prefix

The documentation for this class was generated from the following file: