Time management utility
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public | :: | dt |
Timestep |
|||
logical, | public | :: | finish | = | .false. |
Instructs simulation to end |
|
real(kind=wp), | public | :: | freq_output | = | huge(1.0_wp) |
Frequency of visualization writes |
|
real(kind=wp), | public | :: | freq_write | = | huge(1.0_wp) |
Frequency of restart writes |
|
integer, | public | :: | iter | = | 0 |
Current iteration |
|
integer, | public | :: | iter_max | = | huge(1) |
Maximum iterations |
|
type(parser_obj), | public, | pointer | :: | parser |
Parser object |
||
real(kind=wp), | public | :: | time | = | 0.0_wp |
Time at the n-th timestep |
|
real(kind=wp), | public | :: | time_max | = | huge(1.0_wp) |
Maximum simulation time |
|
real(kind=wp), | public | :: | time_wall | = | huge(1.0_wp) |
Wall time |
procedure, public :: Done => timer_obj_Done | |
procedure, public :: EndRun => timer_obj_EndRun | |
procedure, public :: Finalize => timer_obj_Final | |
procedure, public :: Initialize => timer_obj_Init | |
procedure, public :: StepForward => timer_obj_StepForward | |
procedure, public :: TimeToWriteOutputData => timer_obj_TimeToWriteOutputData | |
procedure, public :: TimeToWriteRestartData => timer_obj_TimeToWriteRestartData |
Determines whether simulation is over
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
Determine whether it is time to write visualization files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
Determine whether it is time to write restart files
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
Change run status to finished
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
Finalize
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
Initialize the timer
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |
||
type(parser_obj), | intent(in), | target | :: | parser |
Input file parsing tool |
Move timer from n to n+1
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(timer_obj), | intent(inout) | :: | this |
Timer |