register_physics Subroutine

private subroutine register_physics(cfg, schema)

&physics_nml: barotropic physics + bottom drag + wind stress.

Arguments

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

Calls

proc~~register_physics~~CallsGraph proc~register_physics register_physics proc~group_add nml_group_t%group_add proc~register_physics->proc~group_add proc~nml_real nml_real proc~register_physics->proc~nml_real proc~schema_add_group nml_schema_t%schema_add_group proc~register_physics->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_physics~~CalledByGraph proc~register_physics register_physics proc~build_rdb_schema build_rdb_schema proc~build_rdb_schema->proc~register_physics 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_physics(cfg, schema)
      !! `&physics_nml`: barotropic physics + bottom drag + wind stress.
      type(config_t), target, intent(in) :: cfg
      type(nml_schema_t), intent(inout) :: schema
      type(nml_group_t) :: g
      real(wp), pointer :: pr
      logical, pointer :: pl

      g%name = "physics"
      g%doc = "Barotropic physics: bottom drag, wind stress, Coriolis."
      pr => cfg%manning_n
      call g%add(nml_real("manning_n", pr, "Manning roughness coefficient", &
                          dead_on_ocean_path="coastal-legacy A-grid bottom-drag knob; the A-grid "// &
                          "god state that read it is gone (see rdb_state.F90's module docstring). "// &
                          "The ocean path's drag is &ocean_bdrag_nml."))
      pr => cfg%wind_stress_x
      call g%add(nml_real("wind_stress_x", pr, "Surface wind stress in x", units="Pa"))
      pr => cfg%wind_stress_y
      call g%add(nml_real("wind_stress_y", pr, "Surface wind stress in y", units="Pa"))
      pr => cfg%coriolis_f
      call g%add(nml_real("coriolis_f", pr, "Coriolis parameter f", units="1/s"))
      call schema%add_group(g)
   end subroutine register_physics