register_ocean_tracers Subroutine

private subroutine register_ocean_tracers(cfg, schema)

&ocean_tracers_nml: prognostic-tracer registry switches.

Arguments

Type IntentOptional Attributes Name
type(config_t), intent(in), target :: cfg
type(nml_schema_t), intent(inout) :: schema

Calls

proc~~register_ocean_tracers~~CallsGraph proc~register_ocean_tracers register_ocean_tracers proc~group_add nml_group_t%group_add proc~register_ocean_tracers->proc~group_add proc~nml_logical nml_logical proc~register_ocean_tracers->proc~nml_logical proc~nml_real nml_real proc~register_ocean_tracers->proc~nml_real proc~schema_add_group nml_schema_t%schema_add_group proc~register_ocean_tracers->proc~schema_add_group error error proc~group_add->error proc~lower lower proc~group_add->proc~lower proc~schema_add_group->error proc~schema_add_group->proc~lower proc~move_group move_group proc~schema_add_group->proc~move_group

Called by

proc~~register_ocean_tracers~~CalledByGraph proc~register_ocean_tracers register_ocean_tracers proc~build_rdb_schema build_rdb_schema proc~build_rdb_schema->proc~register_ocean_tracers proc~read_config_from_string_impl read_config_from_string_impl proc~read_config_from_string_impl->proc~build_rdb_schema proc~read_config_impl read_config_impl proc~read_config_impl->proc~build_rdb_schema proc~read_config read_config proc~read_config->proc~read_config_impl proc~read_config_from_string read_config_from_string proc~read_config_from_string->proc~read_config_from_string_impl proc~build_pending_handle build_pending_handle proc~build_pending_handle->proc~read_config_from_string proc~rdb_ocean_create_from_string rdb_ocean_create_from_string proc~rdb_ocean_create_from_string->proc~build_pending_handle proc~rdb_ocean_create_pending rdb_ocean_create_pending proc~rdb_ocean_create_pending->proc~build_pending_handle

Variables

Type Visibility Attributes Name Initial
type(nml_group_t), private :: g
logical, private, pointer :: pl
real(kind=wp), private, pointer :: pr

Source Code

   subroutine register_ocean_tracers(cfg, schema)
      !! `&ocean_tracers_nml`: prognostic-tracer registry switches.
      type(config_t), target, intent(in) :: cfg
      type(nml_schema_t), intent(inout) :: schema
      type(nml_group_t) :: g
      logical, pointer :: pl
      real(wp), pointer :: pr

      g%name = "ocean_tracers"
      g%doc = "Prognostic-tracer registry switches."
      pl => cfg%ocean%tracers%enable_ideal_age
      call g%add(nml_logical("enable_ideal_age", pl, &
                             "Register a passive ideal-age tracer"))
      pr => cfg%ocean%tracers%ideal_age_young_val
      call g%add(nml_real("ideal_age_young_val", pr, &
                          "Surface-band ideal-age Dirichlet value (0 = today's hard-coded reset)", &
                          units="s"))
      pr => cfg%ocean%tracers%ideal_age_sfc_growth_rate
      call g%add(nml_real("ideal_age_sfc_growth_rate", pr, &
                          "Exponential growth rate of the ideal-age surface value (0 = constant)", &
                          units="1/s"))
      pl => cfg%ocean%tracers%enable_pseudo_salt
      call g%add(nml_logical("enable_pseudo_salt", pl, &
                             "Register the pseudo-salt verification tracer "// &
                             "(diagnostic; seeded to S, given salinity's boundary fluxes)"))
      call schema%add_group(g)
   end subroutine register_ocean_tracers