register_ocean_forcing Subroutine

private subroutine register_ocean_forcing(cfg, schema)

&ocean_forcing_nml: surface-flux component-set gate (PR-12). One knob, deliberately — components are filled by fillers, not by scalar namelist knobs (that would be a knob-per-component, all dead in v1).

Arguments

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

Calls

proc~~register_ocean_forcing~~CallsGraph proc~register_ocean_forcing register_ocean_forcing proc~group_add nml_group_t%group_add proc~register_ocean_forcing->proc~group_add proc~nml_logical nml_logical proc~register_ocean_forcing->proc~nml_logical proc~schema_add_group nml_schema_t%schema_add_group proc~register_ocean_forcing->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_forcing~~CalledByGraph proc~register_ocean_forcing register_ocean_forcing proc~build_rdb_schema build_rdb_schema proc~build_rdb_schema->proc~register_ocean_forcing 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

Source Code

   subroutine register_ocean_forcing(cfg, schema)
      !! `&ocean_forcing_nml`: surface-flux component-set gate (PR-12).
      !! One knob, deliberately — components are filled by fillers, not
      !! by scalar namelist knobs (that would be a knob-per-component,
      !! all dead in v1).
      type(config_t), target, intent(in) :: cfg
      type(nml_schema_t), intent(inout) :: schema
      type(nml_group_t) :: g
      logical, pointer :: pl

      g%name = "ocean_forcing"
      g%doc = "Surface-flux component-set gate (PR-12): allocate the "// &
              "q_sw/evap/heat_content_*/... set and derive Q_heat/Q_salt "// &
              "from it every thermo step."
      pl => cfg%ocean%forcing%enable_components
      call g%add(nml_logical("enable_components", pl, &
                             "Allocate the surface-flux component set and run "// &
                             "the assembler (default off => byte-identical)"))
      call schema%add_group(g)
   end subroutine register_ocean_forcing