Module containing general driver for monitoring checkpoints
Datatype for checkpoint monitor
| procedure , public :: get_major_tally Function | |
| procedure , public :: get_minor_tally_fwd Function | |
| procedure , public :: get_minor_tally_bwd Function | |
| procedure , public :: on_major_checkpoint Function | |
| procedure , public :: on_minor_checkpoint Function | |
| procedure , public :: init => init_monitor Subroutine | |
| procedure , public :: drive Subroutine |
Return current fwd tally for the minor cycle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(in) | :: | self |
Instance of class |
Return current bwd tally for the minor cycle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(in) | :: | self |
Instance of class |
Return current tally for the major cycle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(in) | :: | self |
Instance of class |
Return current checkpoint state for the minor cycle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(in) | :: | self |
Instance of class |
Return current checkpoint state for the major cycle
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(in) | :: | self |
Instance of class |
Initialize checkpoint monitor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(inout) | :: | self |
Instance of class |
||
| real(kind=GP), | intent(in) | :: | major_interval |
Time interval of major cycle |
||
| real(kind=GP), | intent(in), | optional | :: | minor_interval |
Time interval of minor cycle If not provided, minor cycle is set to match major cycle |
|
| integer, | intent(in), | optional | :: | major_tally_offset |
Offset of tally of elapsed major cycles If not given, tally starts at 0 (1 after first major checkpoint) |
Check if time aligns with cycle and set according checkpoint flag
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(checkpoint_monitor_t), | intent(inout) | :: | self |
Instance of class |
||
| real(kind=GP), | intent(in) | :: | tau |
Current time |
||
| real(kind=GP), | intent(in) | :: | dtau |
Time step |