MOM_surface_forcing module reference

Functions that calculate the surface wind stresses and fluxes of buoyancy or temperature/salinity and fresh water, in ocean-only (solo) mode.

These functions are called every time step, even if the wind stresses or buoyancy fluxes are constant in time - in that case these routines return quickly without doing anything. In addition, any I/O of forcing fields is controlled by surface_forcing_init, located in this file.

Data Types

surface_forcing_CS

Structure containing pointers to the forcing fields that may be used to drive MOM. All fluxes are positive into the ocean.

Functions/Subroutines

set_forcing

Calls subroutines in this file to get surface forcing fields.

wind_forcing_const

Sets the surface wind stresses to constant values

wind_forcing_2gyre

Sets the surface wind stresses to set up two idealized gyres.

wind_forcing_1gyre

Sets the surface wind stresses to set up a single idealized gyre.

wind_forcing_gyres

Sets the surface wind stresses to set up idealized gyres.

Neverworld_wind_forcing

Sets the surface wind stresses, forces%taux and forces%tauy for the Neverworld forcing configuration.

scurve_wind_forcing

Sets the zonal wind stresses to a piecewise series of s-curves.

scurve

Returns the value of a cosine-bell function evaluated at x/L

wind_forcing_from_file

wind_forcing_by_data_override

stresses_to_ustar

Translate the wind stresses into the friction velocity, including effects of background gustiness.

buoyancy_forcing_from_files

Specifies zero surface buoyancy fluxes from input files.

buoyancy_forcing_from_data_override

Specifies zero surface buoyancy fluxes from data over-ride.

buoyancy_forcing_zero

This subroutine specifies zero surface buoyancy fluxes

buoyancy_forcing_const

Sets up spatially and temporally constant surface heat fluxes.

buoyancy_forcing_linear

Sets surface fluxes of heat and salinity by restoring to temperature and salinity profiles that vary linearly with latitude.

get_file_time_level

Return a time record to read from a file based on the model time, the number of time records in that file and the number of time records per model day.

MARBL_forcing_from_data_override

Sets the necessary MARBL forcings via the data override facility.

forcing_save_restart

Save a restart file for the forcing fields

surface_forcing_init

Initialize the surface forcing module

surface_forcing_end

Deallocate memory associated with the surface forcing module

Type Documentation

type, public :: surface_forcing_CS

Structure containing pointers to the forcing fields that may be used to drive MOM. All fluxes are positive into the ocean.

Parameters
  • use_temperature

    if true, temp & salinity used as state variables

  • restorebuoy

    if true, use restoring surface buoyancy forcing

  • adiabatic

    if true, no diapycnal mass fluxes or surface buoyancy forcing

  • nonBous

    If true, this run is fully non-Boussinesq

  • variable_winds

    if true, wind stresses vary with time

  • variable_buoyforce

    if true, buoyancy forcing varies with time.

  • south_lat

    southern latitude of the domain [degrees_N] or [km] or [m]

  • len_lat

    domain length in latitude [degrees_N] or [km] or [m]

  • Rho0

    Boussinesq reference density [R ~> kg m-3]

  • G_Earth

    gravitational acceleration [L2 Z-1 T-2 ~> m s-2]

  • Flux_const

    piston velocity for surface restoring [Z T-1 ~> m s-1]

  • Flux_const_T

    piston velocity for surface temperature restoring [Z T-1 ~> m s-1]

  • Flux_const_S

    piston velocity for surface salinity restoring [Z T-1 ~> m s-1]

  • rho_restore

    The density that is used to convert piston velocities into salt or heat fluxes with salinity or temperature restoring [R ~> kg m-3]

  • latent_heat_fusion

    latent heat of fusion times [Q ~> J kg-1]

  • latent_heat_vapor

    latent heat of vaporization [Q ~> J kg-1]

  • tau_x0

    Constant zonal wind stress used in the WIND_CONFIG="const" forcing [R L Z T-2 ~> Pa]

  • tau_y0

    Constant meridional wind stress used in the WIND_CONFIG="const" forcing [R L Z T-2 ~> Pa]

  • taux_mag

    Peak magnitude of the zonal wind stress for several analytic profiles [R L Z T-2 ~> Pa]

  • gust_const

    constant unresolved background gustiness for ustar [R Z2 T-2 ~> Pa]

  • read_gust_2d

    if true, use 2-dimensional gustiness supplied from a file

  • gust

    spatially varying unresolved background gustiness [R L Z T-2 ~> Pa] gust is used when read_gust_2d is true.

  • T_Restore

    temperature to damp (restore) the SST to [C ~> degC]

  • S_Restore

    salinity to damp (restore) the SSS [S ~> ppt]

  • Dens_Restore

    density to damp (restore) surface density [R ~> kg m-3]

  • gyres_taux_const

    A constant wind stress [R L Z T-2 ~> Pa].

  • gyres_taux_sin_amp

    The amplitude of cosine wind stress gyres [R L Z T-2 ~> Pa], if WIND_CONFIG=='gyres'

  • gyres_taux_cos_amp

    The amplitude of cosine wind stress gyres [R L Z T-2 ~> Pa], if WIND_CONFIG=='gyres'

  • gyres_taux_n_pis

    The number of sine lobes in the basin if WIND_CONFIG=='gyres' [nondim]

  • answer_date

    This 8-digit integer gives the approximate date with which the order of arithmetic and expressions were added to the code. Dates before 20190101 use original answers. Dates after 20190101 use a form of the gyre wind stresses that are rotationally invariant and more likely to be the same between compilers.

  • ustar_gustless_bug

    If true, include a bug in the time-averaging of the gustless wind friction velocity.

  • use_MARBL_tracers

    If true, allocate memory for forcing needed by MARBL

  • scurves_ydata

    Latitudes of scurve nodes [degreesN]

  • scurves_taux

    Zonal wind stress values at scurve nodes [R L Z T-2 ~> Pa]

  • T_north

    Target temperatures at north used in buoyancy_forcing_linear [C ~> degC]

  • T_south

    Target temperatures at south used in buoyancy_forcing_linear [C ~> degC]

  • S_north

    Target salinity at north used in buoyancy_forcing_linear [S ~> ppt]

  • S_south

    Target salinity at south used in buoyancy_forcing_linear [S ~> ppt]

  • first_call_set_forcing

    True until after the first call to set_forcing

  • archaic_OMIP_file

    If true use the variable names and data fields from a very old version of the OMIP forcing

  • dataOverrideIsInitialized

    If true, data override has been initialized

  • wind_scale

    value by which wind-stresses are scaled [nondim]

  • constantHeatForcing

    value used for sensible heat flux when buoy_config="const" [Q R Z T-1 ~> W m-2]

  • wind_stagger

    A character indicating how the wind stress components are staggered in WIND_FILE. Valid values are A or C for now.

  • tracer_flow_CSp

    A pointer to the structure that is used to orchestrate the calling of tracer packages

  • restart_CSp

    A pointer to the restart control structure

  • diag

    structure used to regulate timing of diagnostic output

  • inputdir

    directory where NetCDF input files are.

  • wind_config

    indicator for wind forcing type (2gyre, USER, FILE..)

  • wind_file

    if wind_config is "file", file to use

  • buoy_config

    indicator for buoyancy forcing type

  • longwave_file

    The file from which the longwave heat flux is read

  • shortwave_file

    The file from which the shortwave heat flux is read

  • evaporation_file

    The file from which the evaporation is read

  • sensibleheat_file

    The file from which the sensible heat flux is read

  • latentheat_file

    The file from which the latent heat flux is read

  • rain_file

    The file from which the rainfall is read

  • snow_file

    The file from which the snowfall is read

  • runoff_file

    The file from which the runoff is read

  • longwaveup_file

    The file from which the upward longwave heat flux is read

  • shortwaveup_file

    The file from which the upward shortwave heat flux is read

  • SSTrestore_file

    The file from which to read the sea surface temperature to restore toward

  • salinityrestore_file

    The file from which to read the sea surface salinity to restore toward

  • stress_x_var

    X-wind stress variable name in the input file

  • stress_y_var

    Y-wind stress variable name in the input file

  • ustar_var

    ustar variable name in the input file

  • LW_var

    longwave heat flux variable name in the input file

  • SW_var

    shortwave heat flux variable name in the input file

  • latent_var

    latent heat flux variable name in the input file

  • sens_var

    sensible heat flux variable name in the input file

  • evap_var

    evaporation variable name in the input file

  • rain_var

    rainfall variable name in the input file

  • snow_var

    snowfall variable name in the input file

  • lrunoff_var

    liquid runoff variable name in the input file

  • frunoff_var

    frozen runoff variable name in the input file

  • SST_restore_var

    target sea surface temperature variable name in the input file

  • SSS_restore_var

    target sea surface salinity variable name in the input file

  • wind_days_per_rec

    If positive the number of days of wind stress per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • SW_days_per_rec

    If positive the number of days shortwave heat flux per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • LW_days_per_rec

    If positive the number of days longwave heat flux per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • latent_days_per_rec

    If positive the number of days latent heat flux per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • sens_days_per_rec

    If positive the number of days sensible heat flux per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • evap_days_per_rec

    If positive the number of days evaporation per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • precip_days_per_rec

    If positive the number of days precipitation per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • runoff_days_per_rec

    If positive the number of days runoff per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • SST_days_per_rec

    If positive the number of days target SST per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • SSS_days_per_rec

    If positive the number of days target SSS per forcing file time level, or if negative the number of time levels per day. If 31 change forcing monthly, or if 0 the model will guess the right value based on the file size.

  • wind_nlev

    The number of time levels in the file of wind stress

  • SW_nlev

    The number of time levels in the file of shortwave heat flux

  • LW_nlev

    The number of time levels in the file of longwave heat flux

  • latent_nlev

    The number of time levels in the file of latent heat flux

  • sens_nlev

    The number of time levels in the file of sensible heat flux

  • evap_nlev

    The number of time levels in the file of evaporation

  • precip_nlev

    The number of time levels in the file of precipitation

  • runoff_nlev

    The number of time levels in the file of runoff

  • SST_nlev

    The number of time levels in the file of target SST

  • SSS_nlev

    The number of time levels in the file of target SSS

  • wind_last_lev

    The last time level read of wind stress

  • SW_last_lev

    The last time level read of shortwave heat flux

  • LW_last_lev

    The last time level read of longwave heat flux

  • latent_last_lev

    The last time level read of latent heat flux

  • sens_last_lev

    The last time level read of sensible heat flux

  • evap_last_lev

    The last time level read of evaporation

  • precip_last_lev

    The last time level read of precipitation

  • runoff_last_lev

    The last time level read of runoff

  • SST_last_lev

    The last time level read of target SST

  • SSS_last_lev

    The last time level read of target SSS

  • urf_CS

    Control structures for named forcing packages

  • user_forcing_CSp

    Control structures for named forcing packages

  • BFB_forcing_CSp

    Control structures for named forcing packages

  • dumbbell_forcing_CSp

    Control structures for named forcing packages

  • MESO_forcing_CSp

    Control structures for named forcing packages

  • idealized_hurricane_CSp

    Control structures for named forcing packages

  • SCM_CVmix_tests_CSp

    Control structures for named forcing packages

  • marbl_forcing_CSp

    Control structures for named forcing packages

Functions/Subroutine Documentation

subroutine set_forcing(sfc_state, forces, fluxes, day_start, day_interval, G, US, CS)

Calls subroutines in this file to get surface forcing fields.

It also allocates and initializes the fields in the forcing and mech_forcing types the first time it is called.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day_start [in]

    The start time of the fluxes

  • day_interval [in]

    Length of time over which these fluxes applied

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::set_forcing calls cluster_bfb_surface_forcing BFB_surface_forcing cluster_dumbbell_surface_forcing dumbbell_surface_forcing cluster_idealized_hurricane Idealized_hurricane cluster_meso_surface_forcing MESO_surface_forcing cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_forcing_type MOM_forcing_type cluster_mom_safe_alloc MOM_safe_alloc cluster_mom_surface_forcing MOM_surface_forcing cluster_mom_time_manager MOM_time_manager cluster_mom_tracer_flow_control MOM_tracer_flow_control cluster_scm_cvmix_tests SCM_CVMix_tests cluster_user_revise_forcing user_revise_forcing cluster_user_surface_forcing user_surface_forcing bfb_surface_forcing::bfb_buoyancy_forcing BFB_buoyancy_forcing dumbbell_surface_forcing::dumbbell_buoyancy_forcing dumbbell_buoyancy_forcing idealized_hurricane::idealized_hurricane_wind_forcing idealized_hurricane_wind_forcing meso_surface_forcing::meso_buoyancy_forcing MESO_buoyancy_forcing mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_error_handler::mom_error MOM_error mom_error_handler::mom_mesg MOM_mesg mom_forcing_type::copy_common_forcing_fields copy_common_forcing_fields mom_forcing_type::interface::allocate_forcing_type allocate_forcing_type (interface) mom_forcing_type::interface::allocate_mech_forcing allocate_mech_forcing (interface) mom_forcing_type::set_derived_forcing_fields set_derived_forcing_fields mom_forcing_type::set_net_mass_forcing set_net_mass_forcing mom_safe_alloc::interface::safe_alloc_ptr safe_alloc_ptr (interface) mom_surface_forcing::buoyancy_forcing_const buoyancy_forcing_const [private/internal] mom_surface_forcing::buoyancy_forcing_from_data_override buoyancy_forcing_from_data_override [private/internal] mom_surface_forcing::buoyancy_forcing_from_files buoyancy_forcing_from_files [private/internal] mom_surface_forcing::buoyancy_forcing_linear buoyancy_forcing_linear [private/internal] mom_surface_forcing::buoyancy_forcing_zero buoyancy_forcing_zero [private/internal] mom_surface_forcing::marbl_forcing_from_data_override MARBL_forcing_from_data_override [private/internal] mom_surface_forcing::neverworld_wind_forcing Neverworld_wind_forcing [private/internal] mom_surface_forcing::scurve_wind_forcing scurve_wind_forcing [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->bfb_surface_forcing::bfb_buoyancy_forcing mom_surface_forcing::set_forcing->dumbbell_surface_forcing::dumbbell_buoyancy_forcing mom_surface_forcing::set_forcing->idealized_hurricane::idealized_hurricane_wind_forcing mom_surface_forcing::set_forcing->meso_surface_forcing::meso_buoyancy_forcing mom_surface_forcing::set_forcing->mom_cpu_clock_infra::cpu_clock_begin mom_surface_forcing::set_forcing->mom_cpu_clock_infra::cpu_clock_end mom_surface_forcing::set_forcing->mom_error_handler::calltree_enter mom_surface_forcing::set_forcing->mom_error_handler::calltree_leave mom_surface_forcing::set_forcing->mom_error_handler::mom_error mom_surface_forcing::set_forcing->mom_error_handler::mom_mesg mom_surface_forcing::set_forcing->mom_forcing_type::copy_common_forcing_fields mom_surface_forcing::set_forcing->mom_forcing_type::interface::allocate_forcing_type mom_surface_forcing::set_forcing->mom_forcing_type::interface::allocate_mech_forcing mom_surface_forcing::set_forcing->mom_forcing_type::set_derived_forcing_fields mom_surface_forcing::set_forcing->mom_forcing_type::set_net_mass_forcing mom_surface_forcing::set_forcing->mom_safe_alloc::interface::safe_alloc_ptr mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_const mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_from_data_override mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_from_files mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_linear mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_zero mom_surface_forcing::set_forcing->mom_surface_forcing::marbl_forcing_from_data_override mom_surface_forcing::set_forcing->mom_surface_forcing::neverworld_wind_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::scurve_wind_forcing mom_surface_forcing::wind_forcing_1gyre wind_forcing_1gyre [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_1gyre mom_surface_forcing::wind_forcing_2gyre wind_forcing_2gyre [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_2gyre mom_surface_forcing::wind_forcing_by_data_override wind_forcing_by_data_override [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_by_data_override mom_surface_forcing::wind_forcing_const wind_forcing_const [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_const mom_surface_forcing::wind_forcing_from_file wind_forcing_from_file [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_from_file mom_surface_forcing::wind_forcing_gyres wind_forcing_gyres [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_gyres mom_time_manager::time_to_real time_to_real mom_surface_forcing::set_forcing->mom_time_manager::time_to_real mom_tracer_flow_control::call_tracer_set_forcing call_tracer_set_forcing mom_surface_forcing::set_forcing->mom_tracer_flow_control::call_tracer_set_forcing scm_cvmix_tests::scm_cvmix_tests_buoyancy_forcing SCM_CVMix_tests_buoyancy_forcing mom_surface_forcing::set_forcing->scm_cvmix_tests::scm_cvmix_tests_buoyancy_forcing scm_cvmix_tests::scm_cvmix_tests_wind_forcing SCM_CVMix_tests_wind_forcing mom_surface_forcing::set_forcing->scm_cvmix_tests::scm_cvmix_tests_wind_forcing user_revise_forcing::user_alter_forcing user_alter_forcing mom_surface_forcing::set_forcing->user_revise_forcing::user_alter_forcing user_surface_forcing::user_buoyancy_forcing USER_buoyancy_forcing mom_surface_forcing::set_forcing->user_surface_forcing::user_buoyancy_forcing user_surface_forcing::user_wind_forcing USER_wind_forcing mom_surface_forcing::set_forcing->user_surface_forcing::user_wind_forcing
Text view
Callers call graph
Callers of mom_surface_forcing::set_forcing calls cluster_External External cluster_mom_surface_forcing MOM_surface_forcing External::mom6 MOM6 mom_surface_forcing::set_forcing set_forcing External::mom6->mom_surface_forcing::set_forcing
Text view
subroutine wind_forcing_const(sfc_state, forces, tau_x0, tau_y0, day, G, US, CS)

Sets the surface wind stresses to constant values

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • tau_x0 [in]

    The zonal wind stress [R Z L T-2 ~> Pa]

  • tau_y0 [in]

    The meridional wind stress [R Z L T-2 ~> Pa]

  • day [in]

    The time of the fluxes

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_const calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::wind_forcing_const wind_forcing_const [private/internal] mom_surface_forcing::wind_forcing_const->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_const->mom_error_handler::calltree_leave
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_const calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_const wind_forcing_const [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_const
Text view
subroutine wind_forcing_2gyre(sfc_state, forces, day, G, US, CS)

Sets the surface wind stresses to set up two idealized gyres.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    The time of the fluxes

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_2gyre calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::wind_forcing_2gyre wind_forcing_2gyre [private/internal] mom_surface_forcing::wind_forcing_2gyre->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_2gyre->mom_error_handler::calltree_leave mom_surface_forcing::wind_forcing_2gyre->mom_surface_forcing::stresses_to_ustar
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_2gyre calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_2gyre wind_forcing_2gyre [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_2gyre
Text view
subroutine wind_forcing_1gyre(sfc_state, forces, day, G, US, CS)

Sets the surface wind stresses to set up a single idealized gyre.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    The time of the fluxes

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_1gyre calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::wind_forcing_1gyre wind_forcing_1gyre [private/internal] mom_surface_forcing::wind_forcing_1gyre->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_1gyre->mom_error_handler::calltree_leave mom_surface_forcing::wind_forcing_1gyre->mom_surface_forcing::stresses_to_ustar
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_1gyre calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_1gyre wind_forcing_1gyre [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_1gyre
Text view
subroutine wind_forcing_gyres(sfc_state, forces, day, G, US, CS)

Sets the surface wind stresses to set up idealized gyres.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    The time of the fluxes

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_gyres calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::wind_forcing_gyres wind_forcing_gyres [private/internal] mom_surface_forcing::wind_forcing_gyres->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_gyres->mom_error_handler::calltree_leave mom_surface_forcing::wind_forcing_gyres->mom_surface_forcing::stresses_to_ustar
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_gyres calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_gyres wind_forcing_gyres [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_gyres
Text view
subroutine Neverworld_wind_forcing(sfc_state, forces, day, G, US, CS)

Sets the surface wind stresses, forces%taux and forces%tauy for the Neverworld forcing configuration.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    Time used for determining the fluxes.

  • G [inout]

    Grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::neverworld_wind_forcing calls cluster_mom_forcing_type MOM_forcing_type cluster_mom_surface_forcing MOM_surface_forcing mom_forcing_type::interface::allocate_mech_forcing allocate_mech_forcing (interface) mom_surface_forcing::neverworld_wind_forcing Neverworld_wind_forcing [private/internal] mom_surface_forcing::neverworld_wind_forcing->mom_forcing_type::interface::allocate_mech_forcing mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::neverworld_wind_forcing->mom_surface_forcing::stresses_to_ustar
Text view
Callers call graph
Callers of mom_surface_forcing::neverworld_wind_forcing calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::neverworld_wind_forcing Neverworld_wind_forcing [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::neverworld_wind_forcing
Text view
subroutine scurve_wind_forcing(sfc_state, forces, day, G, US, CS)

Sets the zonal wind stresses to a piecewise series of s-curves.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    Time used for determining the fluxes.

  • G [inout]

    Grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::scurve_wind_forcing calls cluster_mom_forcing_type MOM_forcing_type cluster_mom_surface_forcing MOM_surface_forcing mom_forcing_type::interface::allocate_mech_forcing allocate_mech_forcing (interface) mom_surface_forcing::scurve scurve [private/internal] mom_surface_forcing::scurve_wind_forcing scurve_wind_forcing [private/internal] mom_surface_forcing::scurve_wind_forcing->mom_forcing_type::interface::allocate_mech_forcing mom_surface_forcing::scurve_wind_forcing->mom_surface_forcing::scurve mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::scurve_wind_forcing->mom_surface_forcing::stresses_to_ustar
Text view
Callers call graph
Callers of mom_surface_forcing::scurve_wind_forcing calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::scurve_wind_forcing scurve_wind_forcing [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::scurve_wind_forcing
Text view
real function scurve(x, L)

Returns the value of a cosine-bell function evaluated at x/L

Parameters
  • x [in]

    non-dimensional position [nondim]

  • L [in]

    non-dimensional width [nondim]

Callers call graph
Callers of mom_surface_forcing::scurve calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::scurve scurve [private/internal] mom_surface_forcing::scurve_wind_forcing scurve_wind_forcing [private/internal] mom_surface_forcing::scurve_wind_forcing->mom_surface_forcing::scurve
Text view

subroutine wind_forcing_from_file(sfc_state, forces, day, G, US, CS)

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    The time of the fluxes

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_from_file calls cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_string_functions MOM_string_functions cluster_mom_surface_forcing MOM_surface_forcing mom_domain_infra::interface::fill_symmetric_edges fill_symmetric_edges (interface) mom_domain_infra::interface::pass_vector pass_vector (interface) mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_error_handler::mom_error MOM_error mom_io::interface::mom_read_data MOM_read_data (interface) mom_io::interface::mom_read_vector MOM_read_vector (interface) mom_string_functions::uppercase uppercase mom_surface_forcing::get_file_time_level get_file_time_level [private/internal] mom_surface_forcing::wind_forcing_from_file wind_forcing_from_file [private/internal] mom_surface_forcing::wind_forcing_from_file->mom_domain_infra::interface::fill_symmetric_edges mom_surface_forcing::wind_forcing_from_file->mom_domain_infra::interface::pass_vector mom_surface_forcing::wind_forcing_from_file->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_from_file->mom_error_handler::calltree_leave mom_surface_forcing::wind_forcing_from_file->mom_error_handler::mom_error mom_surface_forcing::wind_forcing_from_file->mom_io::interface::mom_read_data mom_surface_forcing::wind_forcing_from_file->mom_io::interface::mom_read_vector mom_surface_forcing::wind_forcing_from_file->mom_string_functions::uppercase mom_surface_forcing::wind_forcing_from_file->mom_surface_forcing::get_file_time_level
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_from_file calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_from_file wind_forcing_from_file [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_from_file
Text view

subroutine wind_forcing_by_data_override(sfc_state, forces, day, G, US, CS)

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • forces [inout]

    A structure with the driving mechanical forces

  • day [in]

    The time of the fluxes

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::wind_forcing_by_data_override calls cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_domain_infra MOM_domain_infra cluster_mom_error_handler MOM_error_handler cluster_mom_forcing_type MOM_forcing_type cluster_mom_surface_forcing MOM_surface_forcing mom_data_override_infra::impose_data_init impose_data_init mom_data_override_infra::interface::impose_data impose_data (interface) mom_domain_infra::interface::pass_vector pass_vector (interface) mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_forcing_type::interface::allocate_mech_forcing allocate_mech_forcing (interface) 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_surface_forcing::wind_forcing_by_data_override->mom_data_override_infra::interface::impose_data mom_surface_forcing::wind_forcing_by_data_override->mom_domain_infra::interface::pass_vector mom_surface_forcing::wind_forcing_by_data_override->mom_error_handler::calltree_enter mom_surface_forcing::wind_forcing_by_data_override->mom_error_handler::calltree_leave mom_surface_forcing::wind_forcing_by_data_override->mom_forcing_type::interface::allocate_mech_forcing
Text view
Callers call graph
Callers of mom_surface_forcing::wind_forcing_by_data_override calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::wind_forcing_by_data_override wind_forcing_by_data_override [private/internal] mom_surface_forcing::set_forcing->mom_surface_forcing::wind_forcing_by_data_override
Text view
subroutine stresses_to_ustar(forces, G, US, CS)

Translate the wind stresses into the friction velocity, including effects of background gustiness.

Parameters
  • forces [inout]

    A structure with the driving mechanical forces

  • G [in]

    Grid structure.

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callers call graph
Callers of mom_surface_forcing::stresses_to_ustar calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::neverworld_wind_forcing Neverworld_wind_forcing [private/internal] mom_surface_forcing::stresses_to_ustar stresses_to_ustar [private/internal] mom_surface_forcing::neverworld_wind_forcing->mom_surface_forcing::stresses_to_ustar mom_surface_forcing::scurve_wind_forcing scurve_wind_forcing [private/internal] mom_surface_forcing::scurve_wind_forcing->mom_surface_forcing::stresses_to_ustar mom_surface_forcing::wind_forcing_1gyre wind_forcing_1gyre [private/internal] mom_surface_forcing::wind_forcing_1gyre->mom_surface_forcing::stresses_to_ustar mom_surface_forcing::wind_forcing_2gyre wind_forcing_2gyre [private/internal] mom_surface_forcing::wind_forcing_2gyre->mom_surface_forcing::stresses_to_ustar mom_surface_forcing::wind_forcing_gyres wind_forcing_gyres [private/internal] mom_surface_forcing::wind_forcing_gyres->mom_surface_forcing::stresses_to_ustar
Text view
subroutine buoyancy_forcing_from_files(sfc_state, fluxes, day, dt, G, US, CS)

Specifies zero surface buoyancy fluxes from input files.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • dt [in]

    The amount of time over which the fluxes apply [T ~> s]

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::buoyancy_forcing_from_files calls cluster_mom_error_handler MOM_error_handler cluster_mom_io MOM_io cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_error_handler::mom_error MOM_error mom_io::interface::mom_read_data MOM_read_data (interface) mom_surface_forcing::buoyancy_forcing_from_files buoyancy_forcing_from_files [private/internal] mom_surface_forcing::buoyancy_forcing_from_files->mom_error_handler::calltree_enter mom_surface_forcing::buoyancy_forcing_from_files->mom_error_handler::calltree_leave mom_surface_forcing::buoyancy_forcing_from_files->mom_error_handler::mom_error mom_surface_forcing::buoyancy_forcing_from_files->mom_io::interface::mom_read_data mom_surface_forcing::get_file_time_level get_file_time_level [private/internal] mom_surface_forcing::buoyancy_forcing_from_files->mom_surface_forcing::get_file_time_level
Text view
Callers call graph
Callers of mom_surface_forcing::buoyancy_forcing_from_files calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_from_files buoyancy_forcing_from_files [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_from_files
Text view
subroutine buoyancy_forcing_from_data_override(sfc_state, fluxes, day, dt, G, US, CS)

Specifies zero surface buoyancy fluxes from data over-ride.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • dt [in]

    The amount of time over which the fluxes apply [T ~> s]

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::buoyancy_forcing_from_data_override calls cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_data_override_infra::impose_data_init impose_data_init mom_data_override_infra::interface::impose_data impose_data (interface) mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_error_handler::mom_error MOM_error 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::buoyancy_forcing_from_data_override->mom_data_override_infra::interface::impose_data mom_surface_forcing::buoyancy_forcing_from_data_override->mom_error_handler::calltree_enter mom_surface_forcing::buoyancy_forcing_from_data_override->mom_error_handler::calltree_leave mom_surface_forcing::buoyancy_forcing_from_data_override->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_surface_forcing::buoyancy_forcing_from_data_override calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_from_data_override buoyancy_forcing_from_data_override [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_from_data_override
Text view
subroutine buoyancy_forcing_zero(sfc_state, fluxes, day, dt, G, CS)

This subroutine specifies zero surface buoyancy fluxes

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • dt [in]

    The amount of time over which the fluxes apply [T ~> s]

  • G [in]

    The ocean's grid structure

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::buoyancy_forcing_zero calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::buoyancy_forcing_zero buoyancy_forcing_zero [private/internal] mom_surface_forcing::buoyancy_forcing_zero->mom_error_handler::calltree_enter mom_surface_forcing::buoyancy_forcing_zero->mom_error_handler::calltree_leave
Text view
Callers call graph
Callers of mom_surface_forcing::buoyancy_forcing_zero calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_zero buoyancy_forcing_zero [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_zero
Text view
subroutine buoyancy_forcing_const(sfc_state, fluxes, day, dt, G, US, CS)

Sets up spatially and temporally constant surface heat fluxes.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • dt [in]

    The amount of time over which the fluxes apply [T ~> s]

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::buoyancy_forcing_const calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::buoyancy_forcing_const buoyancy_forcing_const [private/internal] mom_surface_forcing::buoyancy_forcing_const->mom_error_handler::calltree_enter mom_surface_forcing::buoyancy_forcing_const->mom_error_handler::calltree_leave
Text view
Callers call graph
Callers of mom_surface_forcing::buoyancy_forcing_const calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_const buoyancy_forcing_const [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_const
Text view
subroutine buoyancy_forcing_linear(sfc_state, fluxes, day, dt, G, US, CS)

Sets surface fluxes of heat and salinity by restoring to temperature and salinity profiles that vary linearly with latitude.

Parameters
  • sfc_state [inout]

    A structure containing fields that describe the surface state of the ocean.

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • dt [in]

    The amount of time over which the fluxes apply [T ~> s]

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

Callees call graph
Callees of mom_surface_forcing::buoyancy_forcing_linear calls cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_error_handler::mom_error MOM_error mom_surface_forcing::buoyancy_forcing_linear buoyancy_forcing_linear [private/internal] mom_surface_forcing::buoyancy_forcing_linear->mom_error_handler::calltree_enter mom_surface_forcing::buoyancy_forcing_linear->mom_error_handler::calltree_leave mom_surface_forcing::buoyancy_forcing_linear->mom_error_handler::mom_error
Text view
Callers call graph
Callers of mom_surface_forcing::buoyancy_forcing_linear calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_linear buoyancy_forcing_linear [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::buoyancy_forcing_linear
Text view
function get_file_time_level(Time, nlev_file, days_per_rec) result(time_lev)

Return a time record to read from a file based on the model time, the number of time records in that file and the number of time records per model day.

Parameters
  • Time [in]

    The time of the fluxes

  • nlev_file [in]

    The number of time records in a forcing file

  • days_per_rec [in]

    If positive, the number of days spanned by each time record in a file, if negative the number time records per day, or if 0 determine this by guessing based on the number of records in the file. If this is 31, the time levels will be based on the months of the calendar. Setting this larger than 1000000 will always cause the time level to be set to 1.

  • time_lev

    The time level in a file that will be read.

Callers call graph
Callers of mom_surface_forcing::get_file_time_level calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::buoyancy_forcing_from_files buoyancy_forcing_from_files [private/internal] mom_surface_forcing::get_file_time_level get_file_time_level [private/internal] mom_surface_forcing::buoyancy_forcing_from_files->mom_surface_forcing::get_file_time_level mom_surface_forcing::wind_forcing_from_file wind_forcing_from_file [private/internal] mom_surface_forcing::wind_forcing_from_file->mom_surface_forcing::get_file_time_level
Text view

External calls

time_manager_mod
  • get_date (time_manager_mod::get_date)

  • get_time (time_manager_mod::get_time)

  • set_time (time_manager_mod::set_time)

subroutine MARBL_forcing_from_data_override(fluxes, day, G, US, CS)

Sets the necessary MARBL forcings via the data override facility.

Parameters
  • fluxes [inout]

    A structure containing thermodynamic forcing fields

  • day [in]

    The time of the fluxes

  • G [inout]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

  • atm_co2_prog

    Prognostic atmospheric CO2 concentration [ppm]

  • atm_co2_diag

    Diagnostic atmospheric CO2 concentration [ppm]

  • atm_fine_dust_flux

    Fine dust flux from atmosphere [R Z T-1 ~> kg m-2 s-1]

  • atm_coarse_dust_flux

    Coarse dust flux from atmosphere [R Z T-1 ~> kg m-2 s-1]

  • seaice_dust_flux

    Dust flux from seaice [R Z T-1 ~> kg m-2 s-1]

  • atm_bc_flux

    Black carbon flux from atmosphere [R Z T-1 ~> kg m-2 s-1]

  • seaice_bc_flux

    Black carbon flux from seaice [R Z T-1 ~> kg m-2 s-1]

  • nhx_dep

    Nitrogen deposition [R Z T-1 ~> kg m-2 s-1]

  • noy_dep

    Nitrogen deposition [R Z T-1 ~> kg m-2 s-1]

Callees call graph
Callees of mom_surface_forcing::marbl_forcing_from_data_override calls cluster_marbl_forcing_mod MARBL_forcing_mod cluster_mom_data_override_infra MOM_data_override_infra cluster_mom_error_handler MOM_error_handler cluster_mom_surface_forcing MOM_surface_forcing marbl_forcing_mod::convert_driver_fields_to_forcings convert_driver_fields_to_forcings mom_data_override_infra::impose_data_init impose_data_init mom_data_override_infra::interface::impose_data impose_data (interface) mom_error_handler::calltree_enter callTree_enter mom_error_handler::calltree_leave callTree_leave mom_surface_forcing::marbl_forcing_from_data_override MARBL_forcing_from_data_override [private/internal] mom_surface_forcing::marbl_forcing_from_data_override->marbl_forcing_mod::convert_driver_fields_to_forcings mom_surface_forcing::marbl_forcing_from_data_override->mom_data_override_infra::impose_data_init mom_surface_forcing::marbl_forcing_from_data_override->mom_data_override_infra::interface::impose_data mom_surface_forcing::marbl_forcing_from_data_override->mom_error_handler::calltree_enter mom_surface_forcing::marbl_forcing_from_data_override->mom_error_handler::calltree_leave
Text view
Callers call graph
Callers of mom_surface_forcing::marbl_forcing_from_data_override calls cluster_mom_surface_forcing MOM_surface_forcing mom_surface_forcing::marbl_forcing_from_data_override MARBL_forcing_from_data_override [private/internal] mom_surface_forcing::set_forcing set_forcing mom_surface_forcing::set_forcing->mom_surface_forcing::marbl_forcing_from_data_override
Text view
subroutine forcing_save_restart(CS, G, Time, directory, time_stamped, filename_suffix)

Save a restart file for the forcing fields

Parameters
  • CS

    pointer to control structure returned by a previous surface_forcing_init call

  • G [inout]

    The ocean's grid structure

  • Time [in]

    model time at this call; needed for mpp_write calls

  • directory [in]

    directory into which to write these restart files

  • time_stamped [in]

    If true, the restart file names include a unique time stamp; the default is false.

  • filename_suffix [in]

    optional suffix (e.g., a time-stamp) to append to the restart file name

Callees call graph
Callees of mom_surface_forcing::forcing_save_restart calls cluster_mom_restart MOM_restart cluster_mom_surface_forcing MOM_surface_forcing mom_restart::save_restart save_restart mom_surface_forcing::forcing_save_restart forcing_save_restart mom_surface_forcing::forcing_save_restart->mom_restart::save_restart
Text view
Callers call graph
Callers of mom_surface_forcing::forcing_save_restart calls cluster_External External cluster_mom_surface_forcing MOM_surface_forcing External::mom6 MOM6 mom_surface_forcing::forcing_save_restart forcing_save_restart External::mom6->mom_surface_forcing::forcing_save_restart
Text view
subroutine surface_forcing_init(Time, G, US, param_file, diag, CS, tracer_flow_CSp)

Initialize the surface forcing module

Parameters
  • Time [in]

    The current model time

  • G [in]

    The ocean's grid structure

  • US [in]

    A dimensional unit scaling type

  • param_file [in]

    A structure to parse for run-time parameters

  • diag [inout]

    structure used to regulate diagnostic output

  • CS

    pointer to control structure returned by a previous surface_forcing_init call

  • tracer_flow_CSp

    Forcing for tracers?

Callees call graph
Callees of mom_surface_forcing::surface_forcing_init calls cluster_bfb_surface_forcing BFB_surface_forcing cluster_dumbbell_surface_forcing dumbbell_surface_forcing cluster_idealized_hurricane Idealized_hurricane cluster_marbl_forcing_mod MARBL_forcing_mod cluster_meso_surface_forcing MESO_surface_forcing cluster_mom_cpu_clock_infra MOM_cpu_clock_infra cluster_mom_error_handler MOM_error_handler cluster_mom_file_parser MOM_file_parser cluster_mom_forcing_type MOM_forcing_type cluster_mom_get_input MOM_get_input cluster_mom_io MOM_io cluster_mom_restart MOM_restart cluster_mom_safe_alloc MOM_safe_alloc cluster_mom_string_functions MOM_string_functions cluster_mom_surface_forcing MOM_surface_forcing cluster_scm_cvmix_tests SCM_CVMix_tests cluster_user_revise_forcing user_revise_forcing cluster_user_surface_forcing user_surface_forcing bfb_surface_forcing::bfb_surface_forcing_init BFB_surface_forcing_init dumbbell_surface_forcing::dumbbell_surface_forcing_init dumbbell_surface_forcing_init idealized_hurricane::idealized_hurricane_wind_init idealized_hurricane_wind_init marbl_forcing_mod::marbl_forcing_init MARBL_forcing_init meso_surface_forcing::meso_surface_forcing_init MESO_surface_forcing_init mom_cpu_clock_infra::cpu_clock_begin cpu_clock_begin mom_cpu_clock_infra::cpu_clock_end cpu_clock_end mom_cpu_clock_infra::cpu_clock_id cpu_clock_id mom_error_handler::mom_error MOM_error mom_file_parser::interface::get_param get_param (interface) mom_file_parser::interface::log_param log_param (interface) mom_file_parser::interface::log_version log_version (interface) mom_forcing_type::register_forcing_type_diags register_forcing_type_diags mom_get_input::get_mom_input get_MOM_input mom_io::interface::read_netcdf_data read_netCDF_data (interface) mom_io::num_timelevels num_timelevels mom_restart::restart_init restart_init mom_restart::restart_init_end restart_init_end mom_restart::restore_state restore_state mom_safe_alloc::interface::safe_alloc_ptr safe_alloc_ptr (interface) mom_string_functions::slasher slasher mom_surface_forcing::surface_forcing_init surface_forcing_init mom_surface_forcing::surface_forcing_init->bfb_surface_forcing::bfb_surface_forcing_init mom_surface_forcing::surface_forcing_init->dumbbell_surface_forcing::dumbbell_surface_forcing_init mom_surface_forcing::surface_forcing_init->idealized_hurricane::idealized_hurricane_wind_init mom_surface_forcing::surface_forcing_init->marbl_forcing_mod::marbl_forcing_init mom_surface_forcing::surface_forcing_init->meso_surface_forcing::meso_surface_forcing_init mom_surface_forcing::surface_forcing_init->mom_cpu_clock_infra::cpu_clock_begin mom_surface_forcing::surface_forcing_init->mom_cpu_clock_infra::cpu_clock_end mom_surface_forcing::surface_forcing_init->mom_cpu_clock_infra::cpu_clock_id mom_surface_forcing::surface_forcing_init->mom_error_handler::mom_error mom_surface_forcing::surface_forcing_init->mom_file_parser::interface::get_param mom_surface_forcing::surface_forcing_init->mom_file_parser::interface::log_param mom_surface_forcing::surface_forcing_init->mom_file_parser::interface::log_version mom_surface_forcing::surface_forcing_init->mom_forcing_type::register_forcing_type_diags mom_surface_forcing::surface_forcing_init->mom_get_input::get_mom_input mom_surface_forcing::surface_forcing_init->mom_io::interface::read_netcdf_data mom_surface_forcing::surface_forcing_init->mom_io::num_timelevels mom_surface_forcing::surface_forcing_init->mom_restart::restart_init mom_surface_forcing::surface_forcing_init->mom_restart::restart_init_end mom_surface_forcing::surface_forcing_init->mom_restart::restore_state mom_surface_forcing::surface_forcing_init->mom_safe_alloc::interface::safe_alloc_ptr mom_surface_forcing::surface_forcing_init->mom_string_functions::slasher scm_cvmix_tests::scm_cvmix_tests_surface_forcing_init SCM_CVMix_tests_surface_forcing_init mom_surface_forcing::surface_forcing_init->scm_cvmix_tests::scm_cvmix_tests_surface_forcing_init user_revise_forcing::user_revise_forcing_init user_revise_forcing_init mom_surface_forcing::surface_forcing_init->user_revise_forcing::user_revise_forcing_init user_surface_forcing::user_surface_forcing_init USER_surface_forcing_init mom_surface_forcing::surface_forcing_init->user_surface_forcing::user_surface_forcing_init
Text view
Callers call graph
Callers of mom_surface_forcing::surface_forcing_init calls cluster_External External cluster_mom_surface_forcing MOM_surface_forcing External::mom6 MOM6 mom_surface_forcing::surface_forcing_init surface_forcing_init External::mom6->mom_surface_forcing::surface_forcing_init
Text view
subroutine surface_forcing_end(CS, fluxes)

Deallocate memory associated with the surface forcing module

Parameters
  • CS

    pointer to control structure returned by a previous surface_forcing_init call

  • fluxes [inout]

    A structure containing thermodynamic forcing fields

Callees call graph
Callees of mom_surface_forcing::surface_forcing_end calls cluster_mom_error_handler MOM_error_handler cluster_mom_forcing_type MOM_forcing_type cluster_mom_surface_forcing MOM_surface_forcing mom_error_handler::calltree_leave callTree_leave mom_forcing_type::deallocate_forcing_type deallocate_forcing_type mom_surface_forcing::surface_forcing_end surface_forcing_end [private/internal] mom_surface_forcing::surface_forcing_end->mom_error_handler::calltree_leave mom_surface_forcing::surface_forcing_end->mom_forcing_type::deallocate_forcing_type
Text view
API generated with Flint · Rendered from reStructuredText