MOM_data_override_infra module reference

These interfaces allow for ocean or sea-ice variables to be replaced with data.

Generic Interfaces

impose_data

Potentially override the values of a field in the model with values from a dataset.

Functions/Subroutines

impose_data_init

Initialize the data override capability and set the domains for the ocean and ice components. There should be a call to impose_data_init before impose_data is called.

data_override_MD

Potentially override a 2-d field on a MOM6 domain with values from a dataset.

data_override_2d

Potentially override a 2-d field with values from a dataset.

impose_data_unset_domains

Unset domains that had previously been set for use by data_override.

Generic Interface Documentation

interface impose_data

Potentially override the values of a field in the model with values from a dataset.

Callers call graph
Callers of mom_data_override_infra::interface::impose_data calls cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_ice_shelf MOM_ice_shelf cluster_mom_surface_forcing MOM_surface_forcing cluster_mom_wave_interface MOM_wave_interface mom_data_override_infra::interface::impose_data impose_data (interface) mom_ice_shelf::shelf_calc_flux shelf_calc_flux mom_ice_shelf::shelf_calc_flux->mom_data_override_infra::interface::impose_data mom_surface_forcing::buoyancy_forcing_from_data_override buoyancy_forcing_from_data_override [private/internal] mom_surface_forcing::buoyancy_forcing_from_data_override->mom_data_override_infra::interface::impose_data mom_surface_forcing::marbl_forcing_from_data_override MARBL_forcing_from_data_override [private/internal] mom_surface_forcing::marbl_forcing_from_data_override->mom_data_override_infra::interface::impose_data mom_surface_forcing::wind_forcing_by_data_override wind_forcing_by_data_override [private/internal] mom_surface_forcing::wind_forcing_by_data_override->mom_data_override_infra::interface::impose_data mom_wave_interface::surface_bands_by_data_override Surface_Bands_by_data_override [private/internal] mom_wave_interface::surface_bands_by_data_override->mom_data_override_infra::interface::impose_data
Text view

Functions/Subroutine Documentation

subroutine impose_data_init(MOM_domain_in, Ocean_domain_in, Ice_domain_in)

Initialize the data override capability and set the domains for the ocean and ice components. There should be a call to impose_data_init before impose_data is called.

Callers call graph
Callers of mom_data_override_infra::impose_data_init calls cluster_External External cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_surface_forcing MOM_surface_forcing cluster_mom_wave_interface MOM_wave_interface External::mom6 MOM6 mom_data_override_infra::impose_data_init impose_data_init External::mom6->mom_data_override_infra::impose_data_init mom_surface_forcing::buoyancy_forcing_from_data_override buoyancy_forcing_from_data_override [private/internal] mom_surface_forcing::buoyancy_forcing_from_data_override->mom_data_override_infra::impose_data_init mom_surface_forcing::marbl_forcing_from_data_override MARBL_forcing_from_data_override [private/internal] mom_surface_forcing::marbl_forcing_from_data_override->mom_data_override_infra::impose_data_init mom_surface_forcing::wind_forcing_by_data_override wind_forcing_by_data_override [private/internal] mom_surface_forcing::wind_forcing_by_data_override->mom_data_override_infra::impose_data_init mom_wave_interface::surface_bands_by_data_override Surface_Bands_by_data_override [private/internal] mom_wave_interface::surface_bands_by_data_override->mom_data_override_infra::impose_data_init
Text view

External calls

data_override_mod
  • data_override_init (data_override_mod::data_override_init)

subroutine data_override_MD(domain, fieldname, data_2D, time, scale, override, is_ice)

Potentially override a 2-d field on a MOM6 domain with values from a dataset.

Parameters
  • domain [in]

    MOM domain from which to extract information

  • fieldname [in]

    Name of the field to override

  • data_2D [inout]

    Data that may be modified by this call.

  • time [in]

    The model time, and the time for the data

  • scale [in]

    A scaling factor that an overridden field is multiplied by before it is returned. However, if there is no override, there is no rescaling.

  • override [out]

    True if the field has been overridden successfully

  • is_ice [in]

    If present and true, use the ice domain.

Callees call graph
Callees of mom_data_override_infra::data_override_md calls cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_domain_infra MOM_domain_infra mom_data_override_infra::data_override_md data_override_MD [private/internal] mom_domain_infra::get_simple_array_i_ind get_simple_array_i_ind mom_data_override_infra::data_override_md->mom_domain_infra::get_simple_array_i_ind mom_domain_infra::get_simple_array_j_ind get_simple_array_j_ind mom_data_override_infra::data_override_md->mom_domain_infra::get_simple_array_j_ind
Text view

External calls

data_override_mod
  • data_override (data_override_mod::data_override)

subroutine data_override_2d(gridname, fieldname, data_2D, time, override)

Potentially override a 2-d field with values from a dataset.

Parameters
  • gridname [in]

    String identifying the model component, in MOM6 and SIS this may be either 'OCN' or 'ICE'

  • fieldname [in]

    Name of the field to override

  • data_2D [inout]

    Data that may be modified by this call

  • time [in]

    The model time, and the time for the data

  • override [out]

    True if the field has been overridden successfully

External calls

data_override_mod
  • data_override (data_override_mod::data_override)

subroutine impose_data_unset_domains(unset_Ocean, unset_Ice, must_be_set)

Unset domains that had previously been set for use by data_override.

Parameters
  • unset_Ocean [in]

    If present and true, unset the ocean domain for overrides

  • unset_Ice [in]

    If present and true, unset the sea-ice domain for overrides

  • must_be_set [in]

    If present and true, it is a fatal error to unset a domain that is not set.

External calls

data_override_mod
  • data_override_unset_domains (data_override_mod::data_override_unset_domains)

API generated with Flint · Rendered from reStructuredText