A module for calculating and writing gs2 outputs. It can write
these outputs both to a netcdf file
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | private, | parameter | :: | parallel_io_capable | = | .false. |
Do we have parallel IO capability in the build. This is always disabled for now whilst we actually implement this feature |
type(diagnostics_type), | public | :: | gnostics | ||||
logical, | private, | parameter | :: | debug | = | .false. |
Read namelist diagnostics_config, initialise submodules, open output file 'run_name.cdf' and create dimensions. !!!!!!!!!!!!!!!!!!!!! Adjust other modules !!!!!!!!!!!!!!!!!!!!!
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(standard_header_type), | intent(in) | :: | header |
Header for files with build and run information |
FIXME : Add documentation
This subroutine determines which ascii output files are enabled (i.e., opened, flushed at each write, and then closed). If an ascii file is not enabled here, writing to it will cause some indeterminate unpleasant behaviour
Close the output file and deallocate arrays
FIXME : Add documentation
Calculates and write the QL flux metric to netcdf
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(diagnostics_type), | intent(inout) | :: | gnostics |
Create or write all variables according to the value of istep: istep=-1 --> Create all netcdf variables istep=0 --> Write constant arrays/parameters (e.g. aky) and initial values istep>0 --> Write variables new diagnostic, calulate and write in new variable
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | istep_in | |||
logical, | intent(inout) | :: | exit | |||
logical, | intent(in), | optional | :: | force |
Reset cumulative flux and heating averages that are used, e.g. for Trinity. Does not at the moment apply to average growth rates.
FIXME : Add documentation