![]() |
Octopus
|
This module provides a simple timer class which can be used to trigger the writing of a restart file before the requested CPU time is up. More...
This module provides a simple timer class which can be used to trigger the writing of a restart file before the requested CPU time is up.
It allows to take into account the time required for one iteration and optionally a time margin for completing the restart dump process.
Functions/Subroutines | |
| subroutine, public | walltimer_init (auto) |
| initialize the timer More... | |
| subroutine, public | walltimer_end () |
| destructor More... | |
| subroutine | set_alarm (time) |
| set alarm interval in seconds More... | |
| subroutine | set_restart_alarm (time) |
| set restart alarm interval in seconds More... | |
| subroutine | set_margin (time) |
| set safety margin in seconds More... | |
| subroutine | start () |
| start the timer (save starting time) More... | |
| subroutine, public | walltimer_tap (print) |
| measure time of one iteration More... | |
| logical function, public | walltimer_alarm (comm, print) |
| indicate whether time is up More... | |
| logical function, public | restart_walltime_period_alarm (comm) |
| real(real64) function, public | walltimer_get_start_time () |
| Return the walltimer start time. More... | |
Variables | |
| real(real64) | start_time |
| time the timer was started More... | |
| real(real64) | last_tap |
| time of the last call to tap() More... | |
| real(real64) | iteration_time |
| time difference of two calls to tap() More... | |
| real(real64) | margin |
| additional time margin for writing the restart file More... | |
| real(real64) | duration |
| time when the alarm should trigger More... | |
| real(real64) | restart_last_tap |
| time of the last call for restart More... | |
| real(real64) | restart_duration |
| time period to restart (trigger writing restart file) More... | |
| logical | active |
| if .false. the timer will not issue an alarm. More... | |
| logical | auto_tap |
| if .true., tap() is automatically called in every wakeUp() call. More... | |
| logical | restart_active |
| if .false. the timer will not issue an alarm for the restart period timer More... | |
| subroutine, public walltimer_oct_m::walltimer_init | ( | logical, intent(in), optional | auto | ) |
initialize the timer
| [in] | auto | automatically call walltimer_tap in walltimer_alarm() if .true. |
Definition at line 137 of file walltimer.F90.
| subroutine, public walltimer_oct_m::walltimer_end |
destructor
Definition at line 226 of file walltimer.F90.
|
private |
set alarm interval in seconds
Definition at line 236 of file walltimer.F90.
|
private |
set restart alarm interval in seconds
Definition at line 247 of file walltimer.F90.
|
private |
set safety margin in seconds
Definition at line 258 of file walltimer.F90.
|
private |
start the timer (save starting time)
disable timer if duration is less than one second.
disable restart period timer if period is less than one minute.
Definition at line 270 of file walltimer.F90.
| subroutine, public walltimer_oct_m::walltimer_tap | ( | logical, intent(in), optional | ) |
measure time of one iteration
Definition at line 287 of file walltimer.F90.
| logical function, public walltimer_oct_m::walltimer_alarm | ( | type(mpi_comm), intent(in) | comm, |
| logical, intent(in), optional | |||
| ) |
indicate whether time is up
Definition at line 309 of file walltimer.F90.
| logical function, public walltimer_oct_m::restart_walltime_period_alarm | ( | type(mpi_comm), intent(in) | comm | ) |
Definition at line 351 of file walltimer.F90.
| real(real64) function, public walltimer_oct_m::walltimer_get_start_time |
Return the walltimer start time.
Definition at line 383 of file walltimer.F90.
|
private |
time the timer was started
Definition at line 115 of file walltimer.F90.
|
private |
time of the last call to tap()
Definition at line 116 of file walltimer.F90.
|
private |
time difference of two calls to tap()
Definition at line 117 of file walltimer.F90.
|
private |
additional time margin for writing the restart file
Definition at line 118 of file walltimer.F90.
|
private |
time when the alarm should trigger
Definition at line 119 of file walltimer.F90.
|
private |
time of the last call for restart
Definition at line 120 of file walltimer.F90.
|
private |
time period to restart (trigger writing restart file)
Definition at line 121 of file walltimer.F90.
|
private |
if .false. the timer will not issue an alarm.
Definition at line 123 of file walltimer.F90.
|
private |
if .true., tap() is automatically called in every wakeUp() call.
Definition at line 124 of file walltimer.F90.
|
private |
if .false. the timer will not issue an alarm for the restart period timer
Definition at line 125 of file walltimer.F90.