|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Functions | |
| void | event_runtime (void) |
| Event: runtime (i += 10) | |
| void | maxruntime (int *argc, char *argv[]) |
Variables | |
| static double | _maxruntime = HUGE |
Event: runtime (i += 10)
Definition at line 23 of file maxruntime.h.
References _maxruntime, file, perf, and x.
Definition at line 31 of file maxruntime.h.
On parallel machines, runs are often not allowed to exceed a maximum duration (typically 24 hours). To avoid having the job terminated brutally by the queueing system, this module adds the option to exit gracefully after a given runtime.
The maximum runtime is given as a command-line argument (typically in the running script given to the queueing system) using the standard format H:M:S (hours, minutes and seconds). This should match the wall-clock time requested from the queueing system.
When this time minus 5 minutes (to allow for clean termination) is exceeded the state of the simulation is dumped in the "restart" file and the program terminates.
Definition at line 20 of file maxruntime.h.
Referenced by event_runtime(), and maxruntime().