Base class containing diagnostics
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | groupname |
Name of diagnostics group |
||
| character(len=:), | public, | allocatable | :: | dirpath |
Path to diagnostics directory |
||
| type(diagnostic_variable_t), | public | :: | tau |
Time |
|||
| type(diagnostic_variable_t), | public, | dimension(:), allocatable | :: | diags |
Container of non-generic diagnostic variables |
||
| integer, | public | :: | n_diags |
Number of non-generic diagnostic variables |
|||
| logical, | public | :: | file_exists |
Internal flag to track snapshot file status |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(diagnostics_group_t), | intent(inout) | :: | self |
Instance of the type |
Initialize diagnostic
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostics_group_t), | intent(inout) | :: | self |
Instance of class |
||
| type(comm_handler_t), | intent(in) | :: | comm_handler |
MPI communication handler |
||
| character(len=*), | intent(in) | :: | groupname |
Directory suffix to write snapsfiles into |
Initialize diagnostic
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostics_group_t), | intent(inout) | :: | self |
Instance of class |
||
| integer, | intent(in) | :: | n_diags |
Directory to write snapsfiles into |
Write all diagnostics
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostics_group_t), | intent(inout) | :: | self |
Instance of class |
||
| real(kind=GP), | intent(in) | :: | tau |
Time |
||
| integer, | intent(in) | :: | isnaps |
Snapshot file index |
||
| integer, | intent(in) | :: | idiag |
Diagnostic step index |
||
| logical, | intent(in) | :: | start_new_file |
If true, a new file will be created |
Initialize single diagnostic and provide pointer to its vals field
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostics_group_t), | intent(inout) | :: | self |
Instance of class |
||
| integer, | intent(in) | :: | ndim |
Number of elements in diagnostic |
||
| character(len=*), | intent(in) | :: | dimname |
Name of dimension of diagnostic |
||
| character(len=*), | intent(in) | :: | varname |
Name of diagnostic |
||
| integer, | intent(out) | :: | ind_out |
Index of initiated diagnostic in diags array |