36 #ifndef ABSTRACTTIMEADAPTIVITYCONTROLLER_HPP_ 37 #define ABSTRACTTIMEADAPTIVITYCONTROLLER_HPP_ 39 #include "PetscVecTools.hpp" 74 : mMinimumTimeStep(minimumTimeStep),
75 mMaximumTimeStep(maximumTimeStep)
77 assert(minimumTimeStep>0.0);
78 assert(maximumTimeStep>0.0);
79 assert(minimumTimeStep < maximumTimeStep);
96 if (dt < mMinimumTimeStep)
100 if (dt > mMaximumTimeStep)
virtual double ComputeTimeStep(double currentTime, Vec currentSolution)=0
AbstractTimeAdaptivityController(double minimumTimeStep, double maximumTimeStep)
virtual ~AbstractTimeAdaptivityController()
double GetNextTimeStep(double currentTime, Vec currentSolution)