Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
The IntervalFunctionalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals. More...
#include <alsfvm/functional/IntervalFunctionalWriter.hpp>
Public Member Functions | |
IntervalFunctionalWriter (volume::VolumeFactory volumeFactory, io::WriterPointer writer, FunctionalPointer functional) | |
virtual void | write (const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override |
write writes the data to disk More... | |
![]() | |
virtual | ~Writer () |
virtual void | finalize (const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) |
This method should be called at the end of the simulation. More... | |
void | addAttributes (const std::string &nameOfAttributes, const boost::property_tree::ptree &attributes) |
Additional Inherited Members | |
![]() | |
static std::string | getClassName () |
![]() | |
std::map< std::string, boost::property_tree::ptree > | attributesMap |
The IntervalFunctionalWriter class is a decorator for another writer. Its purpose is to only call the underlying Writer object at fixed time intervals.
This class is useful if you only want to save every x seconds of simulation. This class assume you already decorates it with the alsfvm::io::FixedIntervalWriter
alsfvm::functional::IntervalFunctionalWriter::IntervalFunctionalWriter | ( | volume::VolumeFactory | volumeFactory, |
io::WriterPointer | writer, | ||
FunctionalPointer | functional | ||
) |
|
overridevirtual |
write writes the data to disk
conservedVariables | the conservedVariables to write |
grid | the grid that is used (describes the whole domain) |
timestepInformation |
Implements alsfvm::io::Writer.