MOM6
|
The central module of the MOM6 ocean model.
Modular Ocean Model (MOM) Version 6.0 (MOM6)
Additional contributions from:
MOM ice-shelf code was developed by
This program (MOM) simulates the ocean by numerically solving the hydrostatic primitive equations in generalized Lagrangian vertical coordinates, typically tracking stretched pressure (p*) surfaces or following isopycnals in the ocean's interior, and general orthogonal horizontal coordinates. Unlike earlier versions of MOM, in MOM6 these equations are horizontally discretized on an Arakawa C-grid. (It remains to be seen whether a B-grid dynamic core will be revived in MOM6 at a later date; for now applications requiring a B-grid discretization should use MOM5.1.) MOM6 offers a range of options for the physical parameterizations, from those most appropriate to highly idealized models for geophysical fluid dynamics studies to a rich suite of processes appropriate for realistic ocean simulations. The thermodynamic options typically use conservative temperature and preformed salinity as conservative state variables and a full nonlinear equation of state, but there are also idealized adiabatic configurations of the model that use fixed density layers. Version 6.0 of MOM continues in the long tradition of a commitment to climate-quality ocean simulations embodied in previous versions of MOM, even as it draws extensively on the lessons learned in the development of the Generalized Ocean Layered Dynamics (GOLD) ocean model, which was also primarily developed at NOAA/GFDL. MOM has also benefited tremendously from the FMS infrastructure, which it utilizes and shares with other component models developed at NOAA/GFDL.
When run is isopycnal-coordinate mode, the uppermost few layers are often used to describe a bulk mixed layer, including the effects of penetrating shortwave radiation. Either a split- explicit time stepping scheme or a non-split scheme may be used for the dynamics, while the time stepping may be split (and use different numbers of steps to cover the same interval) for the forcing, the thermodynamics, and for the dynamics. Most of the numerics are second order accurate in space. MOM can run with an absurdly thin minimum layer thickness. A variety of non-isopycnal vertical coordinate options are under development, but all exploit the advantages of a Lagrangian vertical coordinate, as discussed in detail by Adcroft and Hallberg (Ocean Modelling, 2006).
Details of the numerics and physical parameterizations are provided in the appropriate source files. All of the available options are selected at run-time by parsing the input files, usually MOM_input and MOM_override, and the options choices are then documented for each run in MOM_param_docs.
MOM6 integrates the equations forward in time in three distinct phases. In one phase, the dynamic equations for the velocities and layer thicknesses are advanced, capturing the propagation of external and internal inertia-gravity waves, Rossby waves, and other strictly adiabatic processes, including lateral stresses, vertical viscosity and momentum forcing, and interface height diffusion (commonly called Gent-McWilliams diffusion in depth- coordinate models). In the second phase, all tracers are advected and diffused along the layers. The third phase applies diabatic processes, vertical mixing of water properties, and perhaps vertical remapping to cause the layers to track the desired vertical coordinate.
The present file (MOM.F90) orchestrates the main time stepping loops. One time integration option for the dynamics uses a split explicit time stepping scheme to rapidly step the barotropic pressure and velocity fields. The barotropic velocities are averaged over the baroclinic time step before they are used to advect thickness and determine the baroclinic accelerations. As described in Hallberg and Adcroft (2009), a barotropic correction is applied to the time-mean layer velocities to ensure that the sum of the layer transports agrees with the time-mean barotropic transport, thereby ensuring that the estimates of the free surface from the sum of the layer thicknesses agrees with the final free surface height as calculated by the barotropic solver. The barotropic and baroclinic velocities are kept consistent by recalculating the barotropic velocities from the baroclinic transports each time step. This scheme is described in Hallberg, 1997, J. Comp. Phys. 135, 54-65 and in Hallberg and Adcroft, 2009, Ocean Modelling, 29, 15-26.
The other time integration options use non-split time stepping schemes based on the 3-step third order Runge-Kutta scheme described in Matsuno, 1966, J. Met. Soc. Japan, 44, 85-88, or on a two-step quasi-2nd order Runge-Kutta scheme. These are much slower than the split time-stepping scheme, but they are useful for providing a more robust solution for debugging cases where the more complicated split time-stepping scheme may be giving suspect solutions.
There are a range of closure options available. Horizontal velocities are subject to a combination of horizontal biharmonic and Laplacian friction (based on a stress tensor formalism) and a vertical Fickian viscosity (perhaps using the kinematic viscosity of water). The horizontal viscosities may be constant, spatially varying or may be dynamically calculated using Smagorinsky's approach. A diapycnal diffusion of density and thermodynamic quantities is also allowed, but not required, as is horizontal diffusion of interface heights (akin to the Gent-McWilliams closure of geopotential coordinate models). The diapycnal mixing may use a fixed diffusivity or it may use the shear Richardson number dependent closure, like that described in Jackson et al. (JPO, 2008). When there is diapycnal diffusion, it applies to momentum as well. As this is in addition to the vertical viscosity, the vertical Prandtl always exceeds 1. A refined bulk-mixed layer is often used to describe the planetary boundary layer in realistic ocean simulations.
MOM has a number of noteworthy debugging capabilities. Excessively large velocities are truncated and MOM will stop itself after a number of such instances to keep the model from crashing altogether. This is useful in diagnosing failures, or (by accepting some truncations) it may be useful for getting the model past the adjustment from an ill-balanced initial condition. In addition, all of the accelerations in the columns with excessively large velocities may be directed to a text file. Parallelization errors may be diagnosed using the DEBUG option, which causes extensive checksums to be written out along with comments indicating where in the algorithm the sums originate and what variable is being summed. The point where these checksums differ between runs is usually a good indication of where in the code the problem lies. All of the test cases provided with MOM are routinely tested to ensure that they give bitwise identical results regardless of the domain decomposition, or whether they use static or dynamic memory allocation.
About 115 other files of source code and 4 header files comprise the MOM code, although there are several hundred more files that make up the FMS infrastructure upon which MOM is built. Each of the MOM files contains comments documenting what it does, and most of the file names are fairly self-evident. In addition, all subroutines and data types are referenced via a module use, only statement, and the module names are consistent with the file names, so it is not too hard to find the source file for a subroutine.
The typical MOM directory tree is as follows:
../MOM |-- config_src | |-- coupled_driver | |-- dynamic | `-- solo_driver |-- examples | |-- CM2G | |-- ... | `-- torus_advection_test `-- src |-- core |-- diagnostics |-- equation_of_state |-- framework |-- ice_shelf |-- initialization |-- parameterizations | |-- lateral | `-- vertical |-- tracer `-- user
Rather than describing each file here, each directory contents will be described to give a broad overview of the MOM code structure.
The directories under config_src contain files that are used for configuring the code, for instance for coupled or ocean-only runs. Only one or two of these directories are used in compiling any, particular run.
config_src/solo_driver: The files here are include the _main driver that is used when MOM is configured as an ocean-only model, as well as the files that specify the surface forcing in this configuration.
The directories under examples provide a large number of working configurations of MOM, along with reference solutions for several different compilers on GFDL's latest large computer. The versions of MOM_memory.h in these directories need not be used if dynamic memory allocation is desired, and the answers should be unchanged.
The directories under src contain most of the MOM files. These files are used in every configuration using MOM.
Most simulations can be set up by modifying only the files MOM_input, and possibly one or two of the files in src/user. In addition, the diag_table (MOM_diag_table) will commonly be modified to tailor the output to the needs of the question at hand. The FMS utility mkmf works with a file called path_names to build an appropriate makefile, and path_names should be edited to reflect the actual location of the desired source code.
There are 3 publicly visible subroutines in this file (MOM.F90).
extract_surface_state determines the surface (bulk mixed layer if traditional isoycnal vertical coordinate) properties of the current model state and packages pointers to these fields into an exported structure.
The remaining subroutines in this file (src/core/MOM.F90) are:
Here are some example heat budgets for the ALE version of MOM6.
Depth integrated heat budget diagnostic for MOM.
Here is an example 3d heat budget diagnostic for MOM.
HFDS = FRAZIL_HEAT_TENDENCY[k=@sum] + BOUNDARY_FORCING_HEAT_TENDENCY[k=@sum]
Here is an example 2d heat budget (depth summed) diagnostic for MOM.
OPOTTEMPTEND_2d = T_ADVECTION_XY_2d + OPOTTEMPPMDIFF_2d + HFDS
Here is an example 3d salt budget diagnostic for MOM.
SFDSI = BOUNDARY_FORCING_SALT_TENDENCY[k=@sum]
Here is an example 2d salt budget (depth summed) diagnostic for MOM.
Data Types | |
type | mom_control_struct |
Control structure for the MOM module, including the variables that describe the state of the ocean. More... | |
type | mom_diag_ids |
A structure with diagnostic IDs of the state variables. More... | |
integer | id_clock_ocean |
CPU time clock IDs. More... | |
integer | id_clock_dynamics |
CPU time clock IDs. More... | |
integer | id_clock_thermo |
CPU time clock IDs. More... | |
integer | id_clock_tracer |
CPU time clock IDs. More... | |
integer | id_clock_diabatic |
CPU time clock IDs. More... | |
integer | id_clock_adiabatic |
CPU time clock IDs. More... | |
integer | id_clock_continuity |
CPU time clock IDs. More... | |
integer | id_clock_thick_diff |
CPU time clock IDs. More... | |
integer | id_clock_bbl_visc |
CPU time clock IDs. More... | |
integer | id_clock_ml_restrat |
CPU time clock IDs. More... | |
integer | id_clock_diagnostics |
CPU time clock IDs. More... | |
integer | id_clock_z_diag |
CPU time clock IDs. More... | |
integer | id_clock_init |
CPU time clock IDs. More... | |
integer | id_clock_mom_init |
CPU time clock IDs. More... | |
integer | id_clock_pass |
CPU time clock IDs. More... | |
integer | id_clock_pass_init |
CPU time clock IDs. More... | |
integer | id_clock_ale |
CPU time clock IDs. More... | |
integer | id_clock_other |
CPU time clock IDs. More... | |
integer | id_clock_offline_tracer |
CPU time clock IDs. More... | |
subroutine, public | step_mom (forces, fluxes, sfc_state, Time_start, time_int_in, CS, Waves, do_dynamics, do_thermodynamics, start_cycle, end_cycle, cycle_length, reset_therm) |
This subroutine orchestrates the time stepping of MOM. The adiabatic dynamics are stepped by calls to one of the step_MOM_dyn_...routines. The action of lateral processes on tracers occur in calls to advect_tracer and tracer_hordiff. Vertical mixing and possibly remapping occur inside of diabatic. More... | |
subroutine | step_mom_dynamics (forces, p_surf_begin, p_surf_end, dt, dt_thermo, bbl_time_int, CS, Time_local, Waves) |
Time step the ocean dynamics, including the momentum and continuity equations. More... | |
subroutine | step_mom_tracer_dyn (CS, G, GV, US, h, Time_local) |
step_MOM_tracer_dyn does tracer advection and lateral diffusion, bringing the tracers up to date with the changes in state due to the dynamics. Surface sources and sinks and remapping are handled via step_MOM_thermo. More... | |
subroutine | step_mom_thermo (CS, G, GV, US, u, v, h, tv, fluxes, dtdia, Time_end_thermo, update_BBL, Waves) |
MOM_step_thermo orchestrates the thermodynamic time stepping and vertical remapping, via calls to diabatic (or adiabatic) and ALE_main. More... | |
subroutine, public | step_offline (forces, fluxes, sfc_state, Time_start, time_interval, CS) |
step_offline is the main driver for running tracers offline in MOM6. This has been primarily developed with ALE configurations in mind. Some work has been done in isopycnal configuration, but the work is very preliminary. Some more detail about this capability along with some of the subroutines called here can be found in tracers/MOM_offline_control.F90 More... | |
subroutine, public | initialize_mom (Time, Time_init, param_file, dirs, CS, restart_CSp, Time_in, offline_tracer_mode, input_restart_file, diag_ptr, count_calls, tracer_flow_CSp) |
Initialize MOM, including memory allocation, setting up parameters and diagnostics, initializing the ocean state variables, and initializing subsidiary modules. More... | |
subroutine, public | finish_mom_initialization (Time, dirs, CS, restart_CSp) |
Finishes initializing MOM and writes out the initial conditions. More... | |
subroutine | register_diags (Time, G, GV, US, IDs, diag) |
Register certain diagnostics. More... | |
subroutine | mom_timing_init (CS) |
Set up CPU clock IDs for timing various subroutines. More... | |
subroutine | set_restart_fields (GV, US, param_file, CS, restart_CSp) |
Set the fields that are needed for bitwise identical restarting the time stepping scheme. In addition to those specified here directly, there may be fields related to the forcing or to the barotropic solver that are needed; these are specified in sub- routines that are called from this one. More... | |
subroutine | adjust_ssh_for_p_atm (tv, G, GV, US, ssh, p_atm, use_EOS) |
Apply a correction to the sea surface height to compensate for the atmospheric pressure (the inverse barometer). More... | |
subroutine, public | extract_surface_state (CS, sfc_state) |
Set the surface (return) properties of the ocean model by setting the appropriate fields in sfc_state. Unused fields are set to NULL or are unallocated. More... | |
logical function, public | mom_state_is_synchronized (CS, adv_dyn) |
Return true if all phases of step_MOM are at the same point in time. More... | |
subroutine, public | get_mom_state_elements (CS, G, GV, US, C_p, use_temp) |
This subroutine offers access to values or pointers to other types from within the MOM_control_struct, allowing the MOM_control_struct to be opaque. More... | |
subroutine, public | get_ocean_stocks (CS, mass, heat, salt, on_PE_only) |
Find the global integrals of various quantities. More... | |
subroutine, public | mom_end (CS) |
End of ocean model, including memory deallocation. More... | |
|
private |
Apply a correction to the sea surface height to compensate for the atmospheric pressure (the inverse barometer).
[in] | tv | A structure pointing to various thermodynamic variables |
[in] | g | ocean grid structure |
[in] | gv | ocean vertical grid structure |
[in] | us | A dimensional unit scaling type |
[in,out] | ssh | time mean surface height [m] |
p_atm | atmospheric pressure [Pa] | |
[in] | use_eos | If true, calculate the density for the SSH correction using the equation of state. |
Definition at line 2673 of file MOM.F90.
Referenced by step_mom(), and step_offline().
subroutine, public mom::extract_surface_state | ( | type(mom_control_struct), pointer | CS, |
type(surface), intent(inout) | sfc_state | ||
) |
Set the surface (return) properties of the ocean model by setting the appropriate fields in sfc_state. Unused fields are set to NULL or are unallocated.
cs | Master MOM control structure | |
[in,out] | sfc_state | transparent ocean surface state structure shared with the calling routine data in this structure is intent out. |
Definition at line 2712 of file MOM.F90.
References mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), and mom_checksum_packages::mom_surface_chksum().
Referenced by mom_main(), ocn_comp_mct::ocean_model_init_sfc(), step_mom(), and step_offline().
subroutine, public mom::finish_mom_initialization | ( | type(time_type), intent(in) | Time, |
type(directories), intent(in) | dirs, | ||
type(mom_control_struct), pointer | CS, | ||
type(mom_restart_cs), pointer | restart_CSp | ||
) |
Finishes initializing MOM and writes out the initial conditions.
[in] | time | model time, used in this routine |
[in] | dirs | structure with directory paths |
cs | pointer to MOM control structure | |
restart_csp | pointer to the restart control structure that will be used for MOM. |
Definition at line 2484 of file MOM.F90.
References mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), mom_unit_scaling::fix_restart_unit_scaling(), and id_clock_init.
Referenced by mom_main().
subroutine, public mom::get_mom_state_elements | ( | type(mom_control_struct), pointer | CS, |
type(ocean_grid_type), optional, pointer | G, | ||
type(verticalgrid_type), optional, pointer | GV, | ||
type(unit_scale_type), optional, pointer | US, | ||
real, intent(out), optional | C_p, | ||
logical, intent(out), optional | use_temp | ||
) |
This subroutine offers access to values or pointers to other types from within the MOM_control_struct, allowing the MOM_control_struct to be opaque.
cs | MOM control structure | |
g | structure containing metrics and grid info | |
gv | structure containing vertical grid info | |
us | A dimensional unit scaling type | |
[out] | c_p | The heat capacity |
[out] | use_temp | Indicates whether temperature is a state variable |
Definition at line 3096 of file MOM.F90.
Referenced by mom_main().
subroutine, public mom::get_ocean_stocks | ( | type(mom_control_struct), pointer | CS, |
real, intent(out), optional | mass, | ||
real, intent(out), optional | heat, | ||
real, intent(out), optional | salt, | ||
logical, intent(in), optional | on_PE_only | ||
) |
Find the global integrals of various quantities.
cs | MOM control structure | |
[out] | heat | The globally integrated integrated ocean heat [J]. |
[out] | salt | The globally integrated integrated ocean salt [kg]. |
[out] | mass | The globally integrated integrated ocean mass [kg]. |
[in] | on_pe_only | If present and true, only sum on the local PE. |
Definition at line 3115 of file MOM.F90.
References mom_spatial_means::global_mass_integral().
Referenced by mom_ocean_model_nuopc::ocean_stock_pe(), and mom_ocean_model_mct::ocean_stock_pe().
subroutine, public mom::initialize_mom | ( | type(time_type), intent(inout), target | Time, |
type(time_type), intent(in) | Time_init, | ||
type(param_file_type), intent(out) | param_file, | ||
type(directories), intent(out) | dirs, | ||
type(mom_control_struct), pointer | CS, | ||
type(mom_restart_cs), pointer | restart_CSp, | ||
type(time_type), intent(in), optional | Time_in, | ||
logical, intent(out), optional | offline_tracer_mode, | ||
character(len=*), intent(in), optional | input_restart_file, | ||
type(diag_ctrl), optional, pointer | diag_ptr, | ||
logical, intent(in), optional | count_calls, | ||
type(tracer_flow_control_cs), optional, pointer | tracer_flow_CSp | ||
) |
Initialize MOM, including memory allocation, setting up parameters and diagnostics, initializing the ocean state variables, and initializing subsidiary modules.
[in,out] | time | model time, set in this routine |
[in] | time_init | The start time for the coupled model's calendar |
[out] | param_file | structure indicating parameter file to parse |
[out] | dirs | structure with directory paths |
cs | pointer set in this routine to MOM control structure | |
restart_csp | pointer set in this routine to the restart control structure that will be used for MOM. | |
[in] | time_in | time passed to MOM_initialize_state when model is not being started from a restart file |
[out] | offline_tracer_mode | True is returned if tracers are being run offline |
[in] | input_restart_file | If present, name of restart file to read |
diag_ptr | A pointer set in this routine to the diagnostic regulatory structure | |
tracer_flow_csp | A pointer set in this routine to | |
[in] | count_calls | If true, nstep_tot counts the number of calls to step_MOM instead of the number of dynamics timesteps. |
Definition at line 1506 of file MOM.F90.
References mom_diabatic_driver::adiabatic_driver_init(), mom_boundary_update::call_obc_register(), mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), mom_error_handler::calltree_waypoint(), mom_transcribe_grid::copy_dyngrid_to_mom_grid(), mom_transcribe_grid::copy_mom_grid_to_dyngrid(), mom_dyn_horgrid::create_dyn_horgrid(), mom_dyn_horgrid::destroy_dyn_horgrid(), mom_diag_mediator::diag_copy_diag_to_storage(), mom_eos::eos_init(), mom_obsolete_params::find_obsolete_params(), mom_get_input::get_mom_input(), mom_verticalgrid::get_tr_flux_units(), mom_hor_index::hor_index_init(), id_clock_init, id_clock_mom_init, id_clock_pass_init, mom_ale_sponge::init_ale_sponge_diags(), mom_sponge::init_sponge_diags(), mom_restart::is_new_run(), mom_tracer_registry::lock_tracer_registry(), mom_meke::meke_alloc_register_restart(), mom_meke::meke_init(), mom_mixed_layer_restrat::mixedlayer_restrat_register_restarts(), mom_coord_initialization::mom_initialize_coord(), mom_fixed_initialization::mom_initialize_fixed(), mom_state_initialization::mom_initialize_state(), mom_sum_output::mom_sum_output_init(), mom_timing_init(), register_diags(), mom_obsolete_diagnostics::register_obsolete_diagnostics(), mom_restart::restart_init(), mom_grid::set_first_direction(), set_restart_fields(), mom_set_visc::set_visc_register_restarts(), mom_thickness_diffuse::thickness_diffuse_init(), and mom_unit_tests::unit_tests().
Referenced by mom_main().
subroutine, public mom::mom_end | ( | type(mom_control_struct), pointer | CS | ) |
End of ocean model, including memory deallocation.
cs | MOM control structure |
Definition at line 3132 of file MOM.F90.
References mom_diabatic_driver::diabatic_driver_end(), mom_boundary_update::obc_register_end(), mom_offline_main::offline_transport_end(), mom_tracer_advect::tracer_advect_end(), mom_tracer_flow_control::tracer_flow_control_end(), mom_tracer_hor_diff::tracer_hor_diff_end(), mom_tracer_registry::tracer_registry_end(), and mom_unit_scaling::unit_scaling_end().
Referenced by mom_main().
logical function, public mom::mom_state_is_synchronized | ( | type(mom_control_struct), pointer | CS, |
logical, intent(in), optional | adv_dyn | ||
) |
Return true if all phases of step_MOM are at the same point in time.
cs | MOM control structure | |
[in] | adv_dyn | If present and true, only check whether the advection is up-to-date with the dynamics. |
Definition at line 3075 of file MOM.F90.
Referenced by mom_main(), and step_mom().
|
private |
Set up CPU clock IDs for timing various subroutines.
[in] | cs | control structure set up by initialize_MOM. |
Definition at line 2565 of file MOM.F90.
References id_clock_adiabatic, id_clock_ale, id_clock_bbl_visc, id_clock_continuity, id_clock_diabatic, id_clock_diagnostics, id_clock_dynamics, id_clock_ml_restrat, id_clock_mom_init, id_clock_ocean, id_clock_offline_tracer, id_clock_other, id_clock_pass, id_clock_pass_init, id_clock_thermo, id_clock_thick_diff, id_clock_tracer, and id_clock_z_diag.
Referenced by initialize_mom().
|
private |
Register certain diagnostics.
[in] | time | current model time |
[in] | g | ocean grid structure |
[in] | gv | ocean vertical grid structure |
[in,out] | us | A dimensional unit scaling type |
[in,out] | ids | A structure with the diagnostic IDs. |
[in,out] | diag | regulates diagnostic output |
Definition at line 2534 of file MOM.F90.
References mom_verticalgrid::get_thickness_units().
Referenced by initialize_mom().
|
private |
Set the fields that are needed for bitwise identical restarting the time stepping scheme. In addition to those specified here directly, there may be fields related to the forcing or to the barotropic solver that are needed; these are specified in sub- routines that are called from this one.
This routine should be altered if there are any changes to the time stepping scheme. The CHECK_RESTART facility may be used to confirm that all needed restart fields have been included.
[in,out] | gv | ocean vertical grid structure |
[in,out] | us | A dimensional unit scaling type |
[in] | param_file | opened file for parsing to get parameters |
[in] | cs | control structure set up by inialize_MOM |
restart_csp | pointer to the restart control structure that will be used for MOM. |
Definition at line 2606 of file MOM.F90.
References mom_verticalgrid::get_flux_units(), and mom_verticalgrid::get_thickness_units().
Referenced by initialize_mom().
subroutine, public mom::step_mom | ( | type(mech_forcing), intent(inout) | forces, |
type(forcing), intent(inout) | fluxes, | ||
type(surface), intent(inout) | sfc_state, | ||
type(time_type), intent(in) | Time_start, | ||
real, intent(in) | time_int_in, | ||
type(mom_control_struct), pointer | CS, | ||
type(wave_parameters_cs), optional, pointer | Waves, | ||
logical, intent(in), optional | do_dynamics, | ||
logical, intent(in), optional | do_thermodynamics, | ||
logical, intent(in), optional | start_cycle, | ||
logical, intent(in), optional | end_cycle, | ||
real, intent(in), optional | cycle_length, | ||
logical, intent(in), optional | reset_therm | ||
) |
This subroutine orchestrates the time stepping of MOM. The adiabatic dynamics are stepped by calls to one of the step_MOM_dyn_...routines. The action of lateral processes on tracers occur in calls to advect_tracer and tracer_hordiff. Vertical mixing and possibly remapping occur inside of diabatic.
[in,out] | forces | A structure with the driving mechanical forces |
[in,out] | fluxes | A structure with pointers to themodynamic, tracer and mass exchange forcing fields |
[in,out] | sfc_state | surface ocean state |
[in] | time_start | starting time of a segment, as a time type |
[in] | time_int_in | time interval covered by this run segment [s]. |
cs | control structure from initialize_MOM | |
waves | An optional pointer to a wave property CS | |
[in] | do_dynamics | Present and false, do not do updates due to the dynamics. |
[in] | do_thermodynamics | Present and false, do not do updates due to the thermodynamics or remapping. |
[in] | start_cycle | This indicates whether this call is to be treated as the first call to step_MOM in a time-stepping cycle; missing is like true. |
[in] | end_cycle | This indicates whether this call is to be treated as the last call to step_MOM in a time-stepping cycle; missing is like true. |
[in] | cycle_length | The amount of time in a coupled time stepping cycle [s]. |
[in] | reset_therm | This indicates whether the running sums of thermodynamic quantities should be reset. If missing, this is like start_cycle. |
Definition at line 399 of file MOM.F90.
References adjust_ssh_for_p_atm(), mom_lateral_mixing_coeffs::calc_depth_function(), mom_lateral_mixing_coeffs::calc_resoln_function(), mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), mom_error_handler::calltree_waypoint(), mom_domains::complete_group_pass(), mom_diag_mediator::diag_copy_diag_to_storage(), extract_surface_state(), id_clock_diagnostics, id_clock_dynamics, id_clock_ocean, id_clock_other, id_clock_pass, mom_forcing_type::mom_mech_forcing_chksum(), mom_state_is_synchronized(), mom_oda_driver_mod::set_analysis_time(), mom_oda_driver_mod::set_prior_tracer(), mom_domains::start_group_pass(), step_mom_dynamics(), step_mom_thermo(), step_mom_tracer_dyn(), and mom_wave_interface::update_stokes_drift().
Referenced by mom_main().
|
private |
Time step the ocean dynamics, including the momentum and continuity equations.
[in] | forces | A structure with the driving mechanical forces |
p_surf_begin | A pointer (perhaps NULL) to the surface pressure at the beginning of this dynamic step, intent in [Pa]. | |
p_surf_end | A pointer (perhaps NULL) to the surface pressure at the end of this dynamic step, intent in [Pa]. | |
[in] | dt | time interval covered by this call [T ~> s]. |
[in] | dt_thermo | time interval covered by any updates that may span multiple dynamics steps [T ~> s]. |
[in] | bbl_time_int | time interval over which updates to the bottom boundary layer properties will apply [T ~> s], or zero not to update the properties. |
cs | control structure from initialize_MOM | |
[in] | time_local | End time of a segment, as a time type |
waves | Container for wave related parameters; the |
Definition at line 874 of file MOM.F90.
References mom_error_handler::calltree_waypoint(), id_clock_bbl_visc, id_clock_diagnostics, id_clock_dynamics, id_clock_ml_restrat, id_clock_other, id_clock_pass, id_clock_thick_diff, mom_meke::step_forward_meke(), and mom_thickness_diffuse::thickness_diffuse().
Referenced by step_mom().
|
private |
MOM_step_thermo orchestrates the thermodynamic time stepping and vertical remapping, via calls to diabatic (or adiabatic) and ALE_main.
[in,out] | cs | Master MOM control structure |
[in,out] | g | ocean grid structure |
[in,out] | gv | ocean vertical grid structure |
[in] | us | A dimensional unit scaling type |
[in,out] | u | zonal velocity [L T-1 ~> m s-1] |
[in,out] | v | meridional velocity [L T-1 ~> m s-1] |
[in,out] | h | layer thickness [H ~> m or kg m-2] |
[in,out] | tv | A structure pointing to various thermodynamic variables |
[in,out] | fluxes | pointers to forcing fields |
[in] | dtdia | The time interval over which to advance [T ~> s] |
[in] | time_end_thermo | End of averaging interval for thermo diags |
[in] | update_bbl | If true, calculate the bottom boundary layer properties. |
waves | Container for wave related parameters |
Definition at line 1131 of file MOM.F90.
References mom_diabatic_driver::adiabatic(), mom_oda_driver_mod::apply_oda_tracer_increments(), mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), mom_error_handler::calltree_waypoint(), id_clock_adiabatic, id_clock_ale, id_clock_bbl_visc, id_clock_diabatic, id_clock_pass, id_clock_thermo, and mom_forcing_type::mom_forcing_chksum().
Referenced by step_mom().
|
private |
step_MOM_tracer_dyn does tracer advection and lateral diffusion, bringing the tracers up to date with the changes in state due to the dynamics. Surface sources and sinks and remapping are handled via step_MOM_thermo.
[in,out] | cs | control structure |
[in,out] | g | ocean grid structure |
[in] | gv | ocean vertical grid structure |
[in] | us | A dimensional unit scaling type |
[in] | h | layer thicknesses after the transports [H ~> m or kg m-2] |
[in] | time_local | The model time at the end of the time step. |
Definition at line 1060 of file MOM.F90.
References mom_error_handler::calltree_waypoint(), id_clock_diagnostics, id_clock_other, id_clock_pass, id_clock_thermo, id_clock_tracer, and mom_open_boundary::update_segment_tracer_reservoirs().
Referenced by step_mom().
subroutine, public mom::step_offline | ( | type(mech_forcing), intent(in) | forces, |
type(forcing), intent(inout) | fluxes, | ||
type(surface), intent(inout) | sfc_state, | ||
type(time_type), intent(in) | Time_start, | ||
real, intent(in) | time_interval, | ||
type(mom_control_struct), pointer | CS | ||
) |
step_offline is the main driver for running tracers offline in MOM6. This has been primarily developed with ALE configurations in mind. Some work has been done in isopycnal configuration, but the work is very preliminary. Some more detail about this capability along with some of the subroutines called here can be found in tracers/MOM_offline_control.F90
[in] | forces | A structure with the driving mechanical forces |
[in,out] | fluxes | pointers to forcing fields |
[in,out] | sfc_state | surface ocean state |
[in] | time_start | starting time of a segment, as a time type |
[in] | time_interval | time interval |
cs | control structure from initialize_MOM |
Definition at line 1310 of file MOM.F90.
References adjust_ssh_for_p_atm(), mom_ale::ale_offline_tracer_final(), mom_lateral_mixing_coeffs::calc_depth_function(), mom_lateral_mixing_coeffs::calc_resoln_function(), extract_surface_state(), id_clock_ale, id_clock_offline_tracer, and mom_offline_main::offline_advection_layer().
Referenced by mom_main(), mom_ocean_model_mct::update_ocean_model(), and mom_ocean_model_nuopc::update_ocean_model().
|
private |
CPU time clock IDs.
Definition at line 373 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom_thermo().
|
private |
CPU time clock IDs.
Definition at line 384 of file MOM.F90.
Referenced by mom_timing_init(), step_mom_thermo(), and step_offline().
|
private |
CPU time clock IDs.
Definition at line 376 of file MOM.F90.
Referenced by mom_timing_init(), step_mom_dynamics(), and step_mom_thermo().
|
private |
|
private |
CPU time clock IDs.
Definition at line 372 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom_thermo().
|
private |
CPU time clock IDs.
Definition at line 378 of file MOM.F90.
Referenced by mom_timing_init(), step_mom(), step_mom_dynamics(), and step_mom_tracer_dyn().
|
private |
CPU time clock IDs.
Definition at line 369 of file MOM.F90.
Referenced by mom_timing_init(), step_mom(), and step_mom_dynamics().
|
private |
CPU time clock IDs.
Definition at line 380 of file MOM.F90.
Referenced by finish_mom_initialization(), and initialize_mom().
|
private |
CPU time clock IDs.
Definition at line 377 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom_dynamics().
|
private |
CPU time clock IDs.
Definition at line 381 of file MOM.F90.
Referenced by initialize_mom(), and mom_timing_init().
integer mom::id_clock_ocean |
CPU time clock IDs.
Definition at line 368 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom().
|
private |
CPU time clock IDs.
Definition at line 386 of file MOM.F90.
Referenced by mom_timing_init(), and step_offline().
|
private |
CPU time clock IDs.
Definition at line 385 of file MOM.F90.
Referenced by mom_timing_init(), step_mom(), step_mom_dynamics(), and step_mom_tracer_dyn().
|
private |
CPU time clock IDs.
Definition at line 382 of file MOM.F90.
Referenced by mom_timing_init(), step_mom(), step_mom_dynamics(), step_mom_thermo(), and step_mom_tracer_dyn().
|
private |
CPU time clock IDs.
Definition at line 383 of file MOM.F90.
Referenced by initialize_mom(), and mom_timing_init().
|
private |
CPU time clock IDs.
Definition at line 370 of file MOM.F90.
Referenced by mom_timing_init(), step_mom_thermo(), and step_mom_tracer_dyn().
|
private |
CPU time clock IDs.
Definition at line 375 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom_dynamics().
|
private |
CPU time clock IDs.
Definition at line 371 of file MOM.F90.
Referenced by mom_timing_init(), and step_mom_tracer_dyn().
|
private |