Pause (true) or resume (false) the simulation time.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(SimulationClock), | intent(inout) | :: | self | |||
| logical, | intent(in) | :: | paused |
true: pause; false: resume |
||
| real(kind=wp), | intent(in), | optional | :: | wall |
wall time (s; default: wall_time()) |
recursive subroutine pause(self, paused, wall) class(SimulationClock), intent(inout) :: self logical, intent(in) :: paused !! true: pause; false: resume real(wp), intent(in), optional :: wall !! wall time (s; default: wall_time()) if (associated(self%sync)) then call self%sync%pause(paused, wall) return end if self%paused_ = paused call self%set_time(self%time_, wall) end subroutine pause