diag_spec_t Derived Type

type, public :: diag_spec_t

One parsed entry of the &ocean_diag_nml diags selection list. Produced by parse_diag_spec; consumed by register_default_diags (canonical-default overrides / skips) and the derived-diagnostic orchestrator (apply_diag_selection). Unset attributes carry sentinels so the consumer falls back to the canonical default.


Components

Type Visibility Attributes Name Initial
integer, public :: coord = DIAG_COORD_UNSET

:layer/z/zstar/sigma output-vgrid override

real(kind=wp), public :: dt_out = -1.0_wp

:<n>s/m/h/d cadence override (<0 = unset)

character(len=64), public :: name = ""

diagnostic name (catalog or canonical)

logical, public :: off = .false.

:off => skip this diagnostic

integer, public :: time_op = DIAG_OP_UNSET

:instant/mean/max/min override


Source Code

   type :: diag_spec_t
      !! One parsed entry of the `&ocean_diag_nml diags` selection list.
      !! Produced by `parse_diag_spec`; consumed by `register_default_diags`
      !! (canonical-default overrides / skips) and the derived-diagnostic
      !! orchestrator (`apply_diag_selection`).  Unset attributes carry
      !! sentinels so the consumer falls back to the canonical default.
      character(len=64) :: name = ""        !! diagnostic name (catalog or canonical)
      logical  :: off = .false.             !! `:off` => skip this diagnostic
      integer  :: time_op = DIAG_OP_UNSET   !! `:instant/mean/max/min` override
      real(wp) :: dt_out = -1.0_wp          !! `:<n>s/m/h/d` cadence override (<0 = unset)
      integer  :: coord = DIAG_COORD_UNSET  !! `:layer/z/zstar/sigma` output-vgrid override
   end type diag_spec_t