Octopus
|
This module provices 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 provices 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 safty 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) |
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 158 of file walltimer.F90.
subroutine, public walltimer_oct_m::walltimer_end |
destructor
Definition at line 219 of file walltimer.F90.
|
private |
set alarm interval in seconds
Definition at line 229 of file walltimer.F90.
|
private |
set restart alarm interval in seconds
Definition at line 240 of file walltimer.F90.
|
private |
set safty margin in seconds
Definition at line 251 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 263 of file walltimer.F90.
subroutine, public walltimer_oct_m::walltimer_tap | ( | logical, intent(in), optional | ) |
measure time of one iteration
Definition at line 280 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 302 of file walltimer.F90.
logical function, public walltimer_oct_m::restart_walltime_period_alarm | ( | type(mpi_comm), intent(in) | comm | ) |
Definition at line 342 of file walltimer.F90.
|
private |
time the timer was started
Definition at line 136 of file walltimer.F90.
|
private |
time of the last call to tap()
Definition at line 137 of file walltimer.F90.
|
private |
time difference of two calls to tap()
Definition at line 138 of file walltimer.F90.
|
private |
additional time margin for writing the restart file
Definition at line 139 of file walltimer.F90.
|
private |
time when the alarm should trigger
Definition at line 140 of file walltimer.F90.
|
private |
time of the last call for restart
Definition at line 141 of file walltimer.F90.
|
private |
time period to restart (trigger writing restart file)
Definition at line 142 of file walltimer.F90.
|
private |
if .false. the timer will not issue an alarm.
Definition at line 144 of file walltimer.F90.
|
private |
if .true., tap() is automatically called in every wakeUp() call.
Definition at line 145 of file walltimer.F90.
|
private |
if .false. the timer will not issue an alarm for the restart period timer
Definition at line 146 of file walltimer.F90.