Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
The TimestepAdjuster class is an abstract interface for adjusting timesteps. More...
#include <alsfvm/integrator/TimestepAdjuster.hpp>
Public Member Functions | |
virtual real | adjustTimestep (real dt, const simulator::TimestepInformation ×tepInformation) const =0 |
adjustTimestep returns the new timestep that the simulator should use More... | |
The TimestepAdjuster class is an abstract interface for adjusting timesteps.
The main use is to ensure that we hit the save times exactly, ie. that if the end time is T, then it will truncate the timestep to min(T - currentTime, dt)
|
pure virtual |
adjustTimestep returns the new timestep that the simulator should use
dt | the current timestep being used |
timestepInformation | timesteps information |
Implemented in alsfvm::io::CoarseGrainingIntervalWriter, alsfvm::io::FixedIntervalWriter, and alsuq::stats::FixedIntervalStatistics.