4#ifndef lethe_checkpoint_control_h
5#define lethe_checkpoint_control_h
9#include <boost/archive/text_iarchive.hpp>
10#include <boost/archive/text_oarchive.hpp>
void serialize(boost::archive::text_oarchive &ar) const
Serialize the checkpoint controller object to an output archive.
const unsigned int max_checkpoint_id
const unsigned int checkpointing_frequency
bool is_checkpoint_time_step(const unsigned int time_step_number)
Return true if a checkpoint should be made at the current time step.
unsigned int get_next_checkpoint_id() const
Return the next checkpoint id.
unsigned int next_checkpoint_id
void increment_checkpoint_id()
Calculate the next checkpoint id.
void deserialize(boost::archive::text_iarchive &ar)
Deserialize an input archive to the checkpoint controller object.
std::string get_filename() const
Return the prefix for the restart files.
const std::string filename
CheckpointControl(Parameters::Restart ¶m)
The CheckpointControl is responsible for keeping track of the next checkpoint id to use.
Restart - Controls writing and reading simulation checkpoints.