|
| procedure, pass(this), public | init (this, neko_case, params) |
| | Initialization from a JSON file.
|
| |
| procedure, pass(this), public | init_from_components (this, neko_case, algorithm, n_saves_memory, path, filename, fmt, keep_checkpoints, extra_fields) |
| | Initialization from components.
|
| |
| procedure, pass(this), public | free (this) |
| | Free.
|
| |
| procedure, pass(this), public | reset (this) |
| | Reset the checkpoint data.
|
| |
| procedure, pass(this), public | restore (this, tstep) |
| | Save the current state of the simulation to disk.
|
| |
| procedure, pass(this) | save_data (this, index) |
| | Save current data to the ram checkpoint at index.
|
| |
| procedure, pass(this) | load_data (this, index) |
| | Restore data from the ram checkpoint at index to the current state.
|
| |
| procedure(state_recover_init), deferred, pass, public | init (this, neko_case, params) |
| |
| procedure(state_recover_free), deferred, pass, public | free (this) |
| |
| procedure(state_recover_reset), deferred, pass, public | reset (this) |
| |
| procedure(state_recover_restore), deferred, pass, public | restore (this, tstep) |
| |
| procedure, pass, public | get_n_timesteps (this) |
| | Get the number of states recorded by this recovery strategy.
|
| |
| procedure, pass, public | set_n_timesteps (this, n) |
| | Set the number of states recorded by this recovery strategy.
|
| |
Definition at line 61 of file checkpoint.f90.
◆ free() [1/2]
- Parameters
-
| [in,out] | this | Checkpointing implementation. |
Definition at line 100 of file checkpoint.f90.
◆ free() [2/2]
◆ get_n_timesteps()
◆ init() [1/2]
Restore the forward simulation state in a linear fashion Initialization
- Parameters
-
| [in,out] | this | Checkpointing implementation. |
| [in,out] | neko_case | Case data structure. |
| [in,out] | params | JSON parameters. |
Definition at line 95 of file checkpoint.f90.
◆ init() [2/2]
◆ init_from_components()
| procedure, pass(this), public state_recover_checkpoint::state_recover_checkpoint_t::init_from_components |
( |
class(state_recover_checkpoint_t), intent(inout), target |
this, |
|
|
class(case_t), intent(inout), target |
neko_case, |
|
|
character(len=*), intent(in) |
algorithm, |
|
|
integer, intent(in), optional |
n_saves_memory, |
|
|
character(len=*), intent(in), optional |
path, |
|
|
character(len=*), intent(in), optional |
filename, |
|
|
character(len=*), intent(in), optional |
fmt, |
|
|
logical, intent(in), optional |
keep_checkpoints, |
|
|
type(field_list_t), intent(inout), optional |
extra_fields |
|
) |
| |
- Parameters
-
| [in,out] | this | Checkpointing implementation. |
| [in,out] | neko_case | Case data structure. |
| [in] | algorithm | Checkpointing algorithm identifier. |
| [in] | n_saves_memory | Number of checkpoints in memory. |
| [in] | path | Output directory for checkpoint files. |
| [in] | filename | Checkpoint base filename. |
| [in] | fmt | Checkpoint file format. |
| [in] | keep_checkpoints | Whether to keep checkpoint files on disk. |
| [in,out] | extra_fields | Additional fields to include in checkpoints. |
Definition at line 97 of file checkpoint.f90.
◆ load_data()
- Parameters
-
| this | The checkpoint object. |
| index | The index in the RAM checkpoint to restore from. |
Definition at line 111 of file checkpoint.f90.
◆ reset() [1/2]
- Parameters
-
| [in,out] | this | Checkpointing implementation. |
Definition at line 102 of file checkpoint.f90.
◆ reset() [2/2]
◆ restore() [1/2]
◆ restore() [2/2]
◆ save_data()
- Parameters
-
| this | The checkpoint object. |
| index | The index in the RAM checkpoint to save to. |
Definition at line 109 of file checkpoint.f90.
◆ set_n_timesteps()
- Parameters
-
| [in,out] | this | State recovery instance. |
| [in] | n | Number of recorded states. |
Definition at line 68 of file state_recover.f90.
◆ algorithm_id
| integer state_recover_checkpoint::state_recover_checkpoint_t::algorithm_id = 0 |
◆ chkp_output
| type(chkp_output_t) state_recover_checkpoint::state_recover_checkpoint_t::chkp_output |
◆ filename
| character(len=256) state_recover_checkpoint::state_recover_checkpoint_t::filename = "forward_checkpoint" |
◆ first_valid_timestep
| integer state_recover_checkpoint::state_recover_checkpoint_t::first_valid_timestep = 2 |
◆ fmt
| character(len=8) state_recover_checkpoint::state_recover_checkpoint_t::fmt = "chkp" |
◆ keep_checkpoints
| logical state_recover_checkpoint::state_recover_checkpoint_t::keep_checkpoints = .false. |
◆ loaded_checkpoint
| integer state_recover_checkpoint::state_recover_checkpoint_t::loaded_checkpoint = -1 |
◆ n_saves_disc
| integer state_recover_checkpoint::state_recover_checkpoint_t::n_saves_disc = 0 |
◆ n_saves_memory
| integer state_recover_checkpoint::state_recover_checkpoint_t::n_saves_memory = 10 |
◆ n_timesteps
| integer state_recover::state_recover_t::n_timesteps = 0 |
|
inherited |
◆ neko_case
◆ path
| character(len=256) state_recover_checkpoint::state_recover_checkpoint_t::path = "checkpoints/" |
◆ state_list
| type(field_list_t) state_recover_checkpoint::state_recover_checkpoint_t::state_list |
◆ state_storage
The documentation for this type was generated from the following file:
- /home/runner/work/neko-top/neko-top/sources/state_recovery/checkpoint/checkpoint.f90