58 return (index_ <= total_);
64 return (index_ > total_);
83 const bool active = status();
106 time_.subCycleIndex(index_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual TimeState subCycle(const label nSubCycles)
Set time to sub-cycle for the given number of steps.
A class for managing sub-cycling times.
~subCycleTime()
Destructor.
subCycleTime & operator++()
Prefix increment.
void endSubCycle()
End the sub-cycling and reset the time-state.
bool status() const
True if the sub-cycle is active.
bool loop()
True if looping is active, increments the index.
bool end() const
Return true if the number of sub-cycles has been reached.