42 real endTime,
bool writeInitialTimestep =
true,
62 alsfvm::shared_ptr<Writer> writer;
63 const real timeInterval;
65 const bool writeInitialTimestep;
67 const real startTime = 0;
virtual void finalize(const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override
This method should be called at the end of the simulation.
Definition: FixedIntervalWriter.cpp:55
virtual void write(const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) override
write writes the data to disk
Definition: FixedIntervalWriter.cpp:33
virtual real adjustTimestep(real dt, const simulator::TimestepInformation ×tepInformation) const override
adjustTimestep returns the new timestep that the simulator should use
Definition: FixedIntervalWriter.cpp:45
The Volume class represents a volume (a collection of cells with values for each cell (eg...
Definition: Volume.hpp:30
double real
Definition: types.hpp:65
const grid::Grid & grid
Definition: NumericalFluxFactory.cpp:104
The FixedIntervalWriter class is a decorator for another writer. Its purpose is to only call the unde...
Definition: FixedIntervalWriter.hpp:31
The Writer class is an abstract interface to represent output writers.
Definition: Writer.hpp:28
The TimestepAdjuster class is an abstract interface for adjusting timesteps.
Definition: TimestepAdjuster.hpp:31
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
FixedIntervalWriter(alsfvm::shared_ptr< Writer > &writer, real timeInterval, real endTime, bool writeInitialTimestep=true, real startTime=0)
Definition: FixedIntervalWriter.cpp:23
virtual ~FixedIntervalWriter()
Definition: FixedIntervalWriter.hpp:45