Definition of diagnostic variable
Datatype for diagnostic variables
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=GP), | public, | allocatable, dimension(:) | :: | vals |
Values of diagnostic variable |
| final :: destructor |
| procedure , public :: get_ndim Function | |
| procedure , public :: init => init_diagnostic_variable Subroutine | |
| procedure , public :: write_netcdf => write_netcdf_diagnostic_variable Subroutine |
Returns dimension of variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostic_variable_t), | intent(in) | :: | self |
Instance of the type |
Writes variable to netcdf file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostic_variable_t), | intent(inout) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | ndim |
Dimension of diagnostic variable |
||
| character(len=*), | intent(in) | :: | dimname |
Name of dimension of diagnostic variable |
||
| character(len=*), | intent(in) | :: | varname |
Name of diagnostic variable |
Writes variable to netcdf file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(diagnostic_variable_t), | intent(in) | :: | self |
Instance of the type |
||
| integer, | intent(in) | :: | fid |
NetCDF file id |
||
| integer, | intent(in) | :: | n_diag |
Diagnostic snapshot index |
Frees memory associated with variable
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(diagnostic_variable_t), | intent(inout) | :: | self |
Instance of the type |