CheckpointPeriodicFunction Class Reference

#include <Scheduler.H>

Inheritance diagram for CheckpointPeriodicFunction:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

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)

Private Attributes

std::string m_prefix

Constructor & Destructor Documentation

CheckpointPeriodicFunction::CheckpointPeriodicFunction ( const std::string &  a_prefix  )  [explicit]


Member Function Documentation

void CheckpointPeriodicFunction::setUp ( AMR a_AMR,
int  a_interval 
) [virtual]

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.

Parameters:
a_AMR The AMR object with which this function will interact during periodic function calls.
a_interval The interval (in steps) at which the periodic function is to be called.

Reimplemented from Scheduler::PeriodicFunction.

void CheckpointPeriodicFunction::operator() ( int  a_step,
Real  a_time 
) [virtual]

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

Parameters:
a_step The step at which the function is called.
a_time The simulation time at which the function is called.

Implements Scheduler::PeriodicFunction.


Member Data Documentation

std::string CheckpointPeriodicFunction::m_prefix [private]


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

Generated on Tue Mar 28 04:03:37 2017 for Chombo + EB by  doxygen 1.5.5