register_slopes Subroutine

private subroutine register_slopes(cfg, schema)

&ocean_slopes (Griffies 1998 isopycnal-slope diagnostics).

Arguments

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

Calls

proc~~register_slopes~~CallsGraph proc~register_slopes register_slopes proc~group_add nml_group_t%group_add proc~register_slopes->proc~group_add proc~nml_logical nml_logical proc~register_slopes->proc~nml_logical proc~nml_real nml_real proc~register_slopes->proc~nml_real proc~schema_add_group nml_schema_t%schema_add_group proc~register_slopes->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_slopes~~CalledByGraph proc~register_slopes register_slopes proc~build_rdb_schema build_rdb_schema proc~build_rdb_schema->proc~register_slopes 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_slopes(cfg, schema)
      !! `&ocean_slopes` (Griffies 1998 isopycnal-slope diagnostics).
      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_slopes"
      g%doc = "Isopycnal (neutral) slope diagnostics (Griffies 1998)."

      pl => cfg%ocean%slopes%enable
      call g%add(nml_logical("enable", pl, &
                             "Master switch (diagnostic; default off ⇒ no-op)"))
      pr => cfg%ocean%slopes%kd_smooth
      call g%add(nml_real("kd_smooth", pr, &
                          "Vert-fill smoothing diffusivity (× dt fills massless layers)", &
                          units="m^2/s"))
      pr => cfg%ocean%slopes%min_dz_for_n2
      call g%add(nml_real("min_dz_for_n2", pr, &
                          "Minimum layer thickness floored in the N²/drdz denominator", &
                          units="m"))

      call schema%add_group(g)
   end subroutine register_slopes