Terminates the simulation after a certain time was reached. More...
#include <main_loop_2d.hpp>


Public Member Functions | |
| SafeTimeTermination (double termination_time, int max_cycles) | |
| Class constructor. More... | |
| bool | operator() (const hdsim &sim) |
| Returns true if the simulation should continue, false otherwise. More... | |
Public Member Functions inherited from TerminationCondition | |
| virtual | ~TerminationCondition (void) |
| Virtual destructor. | |
Terminates the simulation after a certain time was reached.
Definition at line 76 of file main_loop_2d.hpp.
| SafeTimeTermination::SafeTimeTermination | ( | double | termination_time, |
| int | max_cycles | ||
| ) |
Class constructor.
| termination_time | The simulation is advanced until that time is reached |
| max_cycles | Upper limit on the number of time advance cycles. An error is thrown if this number is exceeded. |
Definition at line 20 of file main_loop_2d.cpp.

|
virtual |
Returns true if the simulation should continue, false otherwise.
| sim | Hydrodynamic simulation |
Implements TerminationCondition.
Definition at line 25 of file main_loop_2d.cpp.

1.8.13