Terminates the simulation after a certain time is reached. More...
#include <main_loop_1d.hpp>


Public Member Functions | |
| SafeTimeTermination (double termination_time, int max_cycles) | |
| Class constructor. More... | |
| bool | operator() (hdsim1D const &sim) |
| Determines if a simulation should continue running. More... | |
Terminates the simulation after a certain time is reached.
Definition at line 34 of file main_loop_1d.hpp.
| SafeTimeTermination::SafeTimeTermination | ( | double | termination_time, |
| int | max_cycles | ||
| ) |
Class constructor.
| termination_time | Time to stop simulation |
| max_cycles | Upper bound on the number of time advance cycles |
Definition at line 8 of file main_loop_1d.cpp.
|
virtual |
Determines if a simulation should continue running.
| sim | Hydrodynamic simulation |
Implements simulation1d::TerminationCondition.
Definition at line 13 of file main_loop_1d.cpp.

1.8.13