Datatype for snapshout I/O
Destructor
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(snapshot_t), | intent(inout) | :: | self |
Instance of the type |
Initialises snapshots, creates dirpath
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_t), | intent(inout) | :: | self |
Instance of the type |
||
| type(comm_handler_t), | intent(in) | :: | comm_handler |
MPI communicator |
||
| type(mesh_cart_t), | intent(in) | :: | mesh_cano |
Mesh (canonical) |
||
| type(mesh_cart_t), | intent(in) | :: | mesh_stag |
Mesh (staggered) |
||
| character(len=*), | intent(in) | :: | dirpath |
Directory, where snapshot files are written |
||
| integer, | intent(in) | :: | nvars |
Number of variables to be written |
||
| type(char_arr_t), | intent(in), | dimension(nvars) | :: | name_vars |
Names of variables |
Writes snapshot
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_t), | intent(in) | :: | self |
Instance of the type |
||
| type(comm_handler_t), | intent(in) | :: | comm_handler |
MPI communicator |
||
| integer, | intent(in) | :: | isnaps |
Snapshot number |
||
| real(kind=GP), | intent(in) | :: | tau |
Time |
||
| type(variable_t), | intent(in), | dimension(self%nvars) | :: | vars |
Variables |
|
| integer, | intent(in), | optional | :: | isubsnaps |
Optional sub-snapshot number |
|
| logical, | intent(in), | optional | :: | allow_overwrite |
Whether to allow overwriting snapfiles |
Reads snapshot
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_t), | intent(in) | :: | self |
Instance of the type |
||
| type(comm_handler_t), | intent(in) | :: | comm_handler |
MPI communicator |
||
| integer, | intent(in) | :: | isnaps |
Snapshot number |
||
| real(kind=GP), | intent(out) | :: | tau |
Time |
||
| type(variable_t), | intent(inout), | dimension(self%nvars) | :: | vars |
Variables |
Reads last available snapshot
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_t), | intent(in) | :: | self |
Instance of the type |
||
| type(comm_handler_t), | intent(in) | :: | comm_handler |
MPI communicator |
||
| integer, | intent(out) | :: | isnaps |
Snapshot number |
||
| real(kind=GP), | intent(out) | :: | tau |
Time |
||
| type(variable_t), | intent(inout), | dimension(self%nvars) | :: | vars |
Variables |
Displays information
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(snapshot_t), | intent(inout) | :: | self |
Instance of the type |