Number of names in the CANONICAL diagnostic catalog (SSH,
temperature, salinity, u, v, KE, … — the set
register_default_diags MAY register at setup; some entries
are gated by another namelist group, e.g. temperature needs
&ocean_thermo_nml enable_thermodynamics). No handle required.
Use rdb_ocean_get_diag_count/rdb_ocean_list_diags on a
live handle to see what actually registered.
function rdb_ocean_canonical_catalog_size() result(n) & bind(c, name="rdb_ocean_canonical_catalog_size") !! Number of names in the CANONICAL diagnostic catalog (SSH, !! temperature, salinity, u, v, KE, ... — the set !! `register_default_diags` MAY register at setup; some entries !! are gated by another namelist group, e.g. `temperature` needs !! `&ocean_thermo_nml enable_thermodynamics`). No handle required. !! Use `rdb_ocean_get_diag_count`/`rdb_ocean_list_diags` on a !! live handle to see what actually registered. integer(c_int) :: n n = int(canonical_diag_catalog_size(), c_int) end function rdb_ocean_canonical_catalog_size