MOM_domain_infra module reference
Describes the decomposed MOM domain and has routines for communications across PEs
Data Types
The MOM_domain_type contains information about the domain decomposition. |
Generic Interfaces
Do a halo update on an array |
|
Do a halo update on a pair of arrays representing the two components of a vector |
|
Initiate a non-blocking halo update on an array |
|
Complete a non-blocking halo update on an array |
|
Initiate a halo update on a pair of arrays representing the two components of a vector |
|
Complete a halo update on a pair of arrays representing the two components of a vector |
|
Set up a group of halo updates |
|
Do a set of halo updates that fill in the values at the duplicated edges of a staggered symmetric memory domain |
|
Rescale the values of an array in its computational domain by a constant factor |
|
Pass an array from one MOM domain to another |
|
Copy one MOM_domain_type into another |
|
Extract the 1-d domain components from a MOM_domain or domain2d |
|
Returns the index ranges that have been stored in a MOM_domain_type |
Functions/Subroutines
pass_var_3d does a halo update for a three-dimensional array. |
|
pass_var_2d does a halo update for a two-dimensional array. |
|
pass_var_start_2d starts a halo update for a two-dimensional array. |
|
pass_var_start_3d starts a halo update for a three-dimensional array. |
|
pass_var_complete_2d completes a halo update for a two-dimensional array. |
|
pass_var_complete_3d completes a halo update for a three-dimensional array. |
|
pass_vector_2d does a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector. |
|
fill_vector_symmetric_edges_2d does an usual set of halo updates that only fill in the values at the edge of a pair of symmetric memory two-dimensional arrays representing the components of a two-dimensional horizontal vector. If symmetric memory is not being used, this subroutine does nothing except to possibly turn optional cpu clocks on or off. |
|
pass_vector_3d does a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector. |
|
pass_vector_start_2d starts a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector. |
|
pass_vector_start_3d starts a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector. |
|
pass_vector_complete_2d completes a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector. |
|
pass_vector_complete_3d completes a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector. |
|
create_var_group_pass_2d sets up a group of two-dimensional array halo updates. |
|
create_var_group_pass_3d sets up a group of three-dimensional array halo updates. |
|
create_vector_group_pass_2d sets up a group of two-dimensional vector halo updates. |
|
create_vector_group_pass_3d sets up a group of three-dimensional vector halo updates. |
|
do_group_pass carries out a group halo update. |
|
start_group_pass starts out a group halo update. |
|
complete_group_pass completes a group halo update. |
|
Pass a 2-D array from one MOM domain to another |
|
Pass a 3-D array from one MOM domain to another |
|
Pass a 4-D array from one MOM domain to another |
|
Rescale the values of a 4-D array in its computational domain by a constant factor |
|
Rescale the values of a 3-D array in its computational domain by a constant factor |
|
Rescale the values of a 2-D array in its computational domain by a constant factor |
|
create_MOM_domain creates and initializes a MOM_domain_type variables, based on the information provided in arguments. |
|
dealloc_MOM_domain deallocates memory associated with a pointer to a MOM_domain_type and potentially all of its contents |
|
MOM_thread_affinity_set returns true if the number of openMP threads have been set to a value greater than 1. |
|
set_MOM_thread_affinity sets the number of openMP threads to use with the ocean. |
|
This subroutine retrieves the 1-d domains that make up the 2d-domain in a MOM_domain |
|
This subroutine retrieves the 1-d domains that make up a 2d-domain |
|
clone_MD_to_MD copies one MOM_domain_type into another, while allowing some properties of the new type to differ from the original one. |
|
clone_MD_to_d2D uses information from a MOM_domain_type to create a new domain2d type, while allowing some properties of the new type to differ from the original one. |
|
Returns the index ranges that have been stored in a MOM_domain_type |
|
Returns the index ranges that have been stored in a domain2D type |
|
Return the (potentially symmetric) computational domain i-bounds for an array passed without index specifications (i.e. indices start at 1) based on an array size. |
|
Return the (potentially symmetric) computational domain j-bounds for an array passed without index specifications (i.e. indices start at 1) based on an array size. |
|
Invert the contents of a 1-d array |
|
Returns the global shape of h-point arrays |
|
Get the array ranges in one dimension for the divisions of a global index space (alternative to compute_extent) |
|
Get the array ranges in one dimension for the divisions of a global index space |
|
Broadcast a 2-d domain from the root PE to the other PEs |
|
Broadcast an entire 2-d array from the root processor to all others. |
|
same_domain returns true if two domains use the same list of PEs and layouts and have the same size computational domains, and false if the domains do not conform with each other. Different halo sizes or indexing conventions do not alter the results. |
|
Returns arrays of the i- and j- sizes of the h-point computational domains for each element of the grid layout. Any input values in the extent arrays are discarded, so they are effectively intent out despite their declared intent of inout. |
|
Set the associated domain for internal FMS I/O operations. |
|
Type Documentation
- type, public :: MOM_domain_type
The MOM_domain_type contains information about the domain decomposition.
- Parameters
name
The name of this domain
mpp_domain
The FMS domain with halos on this processor, centered at h points.
mpp_domain_d
A coarse FMS domain with halos on this processor, centered at h points.
niglobal
The total horizontal i-domain size.
njglobal
The total horizontal j-domain size.
nihalo
The i-halo size in memory.
njhalo
The j-halo size in memory.
symmetric
True if symmetric memory is used with this domain.
nonblocking_updates
If true, non-blocking halo updates are allowed. The default is .false. (for now).
thin_halo_updates
If true, optional arguments may be used to specify the width of the halos that are updated with each call.
layout
This domain's processor layout. This is saved to enable the construction of related new domains with different resolutions or other properties.
io_layout
The IO-layout used with this domain.
X_FLAGS
Flag that specifies the properties of the domain in the i-direction in a define_domain call.
Y_FLAGS
Flag that specifies the properties of the domain in the j-direction in a define_domain call.
maskmap
A pointer to an array indicating which logical processors are actually used for the ocean code. The other logical processors would be contain only land points and are not assigned to actual processors. This need not be assigned if all logical processors are used.
turns
Number of quarter-turns from input to this grid.
domain_in
Reference to unrotated domain (if turned)
Generic Interface Documentation
- interface pass_var
Do a halo update on an array
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_domain_infra::interface::pass_var
mom::post_diabatic_halo_updates → mom_domain_infra::interface::pass_var
mom::step_mom_dynamics → mom_domain_infra::interface::pass_var
mom::step_mom_thermo → mom_domain_infra::interface::pass_var
mom_ale_sponge::apply_ale_sponge → mom_domain_infra::interface::pass_var
mom_ale_sponge::initialize_ale_sponge_fixed → mom_domain_infra::interface::pass_var
mom_ale_sponge::initialize_ale_sponge_varying → mom_domain_infra::interface::pass_var
mom_barotropic::barotropic_init → mom_domain_infra::interface::pass_var
mom_controlled_forcing::apply_ctrl_forcing → mom_domain_infra::interface::pass_var
mom_cvmix_kpp::kpp_smooth_bld → mom_domain_infra::interface::pass_var
mom_debugging::check_redundant_st2d → mom_domain_infra::interface::pass_var
mom_diabatic_driver::diabatic → mom_domain_infra::interface::pass_var
mom_diabatic_driver::diabatic_ale → mom_domain_infra::interface::pass_var
mom_diabatic_driver::layered_diabatic → mom_domain_infra::interface::pass_var
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_domain_infra::interface::pass_var
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_domain_infra::interface::pass_var
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_domain_infra::interface::pass_var
mom_fixed_initialization::mom_initialize_fixed → mom_domain_infra::interface::pass_var
mom_geothermal::geothermal_init → mom_domain_infra::interface::pass_var
mom_grid_initialize::initialize_masks → mom_domain_infra::interface::pass_var
mom_grid_initialize::set_grid_metrics_from_mosaic → mom_domain_infra::interface::pass_var
mom_grid_initialize::set_grid_metrics_mercator → mom_domain_infra::interface::pass_var
mom_hor_bnd_diffusion::hor_bnd_diffusion → mom_domain_infra::interface::pass_var
mom_hor_visc::hor_visc_gme_setup → mom_domain_infra::interface::pass_var
mom_hor_visc::hor_visc_init → mom_domain_infra::interface::pass_var
mom_hor_visc::hor_visc_leithy_ah → mom_domain_infra::interface::pass_var
mom_hor_visc::smooth_gme → mom_domain_infra::interface::pass_var
mom_horizontal_regridding::fill_miss_2d → mom_domain_infra::interface::pass_var
mom_horizontal_regridding::horiz_interp_and_extrap_tracer_fms_id → mom_domain_infra::interface::pass_var
mom_horizontal_regridding::horiz_interp_and_extrap_tracer_record → mom_domain_infra::interface::pass_var
mom_ice_shelf::change_thickness_using_melt → mom_domain_infra::interface::pass_var
mom_ice_shelf::change_thickness_using_precip → mom_domain_infra::interface::pass_var
mom_ice_shelf::initialize_ice_shelf → mom_domain_infra::interface::pass_var
mom_ice_shelf::shelf_calc_flux → mom_domain_infra::interface::pass_var
mom_ice_shelf::update_shelf_mass → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::calc_shelf_driving_stress → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_advect → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::ice_shelf_temp → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::interpolate_h_to_b → mom_domain_infra::interface::pass_var
mom_ice_shelf_dynamics::update_od_ffrac → mom_domain_infra::interface::pass_var
mom_internal_tides::internal_tides_init → mom_domain_infra::interface::pass_var
mom_internal_tides::propagate → mom_domain_infra::interface::pass_var
mom_internal_tides::propagate_int_tide → mom_domain_infra::interface::pass_var
mom_lateral_mixing_coeffs::calc_resoln_function → mom_domain_infra::interface::pass_var
mom_marine_ice::iceberg_forces → mom_domain_infra::interface::pass_var
mom_meke::ml_meke_calculate_features → mom_domain_infra::interface::pass_var
mom_meke::predict_meke → mom_domain_infra::interface::pass_var
mom_mixed_layer_restrat::mixedlayer_restrat_bml → mom_domain_infra::interface::pass_var
mom_mixed_layer_restrat::mixedlayer_restrat_bodner → mom_domain_infra::interface::pass_var
mom_mixed_layer_restrat::mixedlayer_restrat_init → mom_domain_infra::interface::pass_var
mom_mixed_layer_restrat::mixedlayer_restrat_om4 → mom_domain_infra::interface::pass_var
mom_neutral_diffusion::neutral_diffusion → mom_domain_infra::interface::pass_var
mom_neutral_diffusion::neutral_diffusion_calc_coeffs → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::apply_oda_tracer_increments → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::get_bias_correction_tracer → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::get_posterior_tracer → mom_domain_infra::interface::pass_var
mom_oda_driver_mod::set_prior_tracer → mom_domain_infra::interface::pass_var
mom_oda_incupd::apply_oda_incupd → mom_domain_infra::interface::pass_var
mom_oda_incupd::calc_oda_increments → mom_domain_infra::interface::pass_var
mom_offline_aux::update_offline_from_files → mom_domain_infra::interface::pass_var
mom_offline_main::offline_advection_ale → mom_domain_infra::interface::pass_var
mom_offline_main::offline_advection_layer → mom_domain_infra::interface::pass_var
mom_offline_main::offline_redistribute_residual → mom_domain_infra::interface::pass_var
mom_offline_main::update_offline_fields → mom_domain_infra::interface::pass_var
mom_open_boundary::fill_obgc_segments → mom_domain_infra::interface::pass_var
mom_open_boundary::flood_fill → mom_domain_infra::interface::pass_var
mom_open_boundary::flood_fill2 → mom_domain_infra::interface::pass_var
mom_open_boundary::open_boundary_halo_update → mom_domain_infra::interface::pass_var
mom_open_boundary::update_obc_segment_dz → mom_domain_infra::interface::pass_var
mom_regridding::initialize_regridding → mom_domain_infra::interface::pass_var
mom_regularize_layers::regularize_layers → mom_domain_infra::interface::pass_var
mom_self_attr_load::calc_sal → mom_domain_infra::interface::pass_var
mom_self_attr_load::sal_init → mom_domain_infra::interface::pass_var
mom_set_visc::set_visc_init → mom_domain_infra::interface::pass_var
mom_shared_initialization::initialize_grid_rotation_angle → mom_domain_infra::interface::pass_var
mom_shared_initialization::set_meansl_from_file → mom_domain_infra::interface::pass_var
mom_state_initialization::initialize_sponges_file → mom_domain_infra::interface::pass_var
mom_state_initialization::mom_initialize_state → mom_domain_infra::interface::pass_var
mom_state_initialization::mom_temp_salt_initialize_from_z → mom_domain_infra::interface::pass_var
mom_stochastics::apply_skeb → mom_domain_infra::interface::pass_var
mom_thickness_diffuse::thickness_diffuse_init → mom_domain_infra::interface::pass_var
mom_tidal_forcing::tidal_forcing_init → mom_domain_infra::interface::pass_var
mom_tracer_initialization_from_z::mom_initialize_tracer_from_z → mom_domain_infra::interface::pass_var
mom_transcribe_grid::copy_dyngrid_to_mom_grid → mom_domain_infra::interface::pass_var
mom_transcribe_grid::copy_mom_grid_to_dyngrid → mom_domain_infra::interface::pass_var
mom_vert_friction::vertfpmix → mom_domain_infra::interface::pass_var
mom_vert_friction::vertvisc_init → mom_domain_infra::interface::pass_var
mom_zanna_bolton::compute_stress_ann_collocated → mom_domain_infra::interface::pass_var
rgc_initialization::rgc_initialize_sponges → mom_domain_infra::interface::pass_var
- interface pass_vector
Do a halo update on a pair of arrays representing the two components of a vector
Callers call graph
Text view
mom::step_mom_dynamics → mom_domain_infra::interface::pass_vector
mom::step_mom_thermo → mom_domain_infra::interface::pass_vector
mom::step_mom_tracer_dyn → mom_domain_infra::interface::pass_vector
mom_barotropic::barotropic_init → mom_domain_infra::interface::pass_vector
mom_barotropic::btstep → mom_domain_infra::interface::pass_vector
mom_barotropic::initialize_bt_obc → mom_domain_infra::interface::pass_vector
mom_debugging::check_redundant_sb2d → mom_domain_infra::interface::pass_vector
mom_debugging::check_redundant_vb2d → mom_domain_infra::interface::pass_vector
mom_debugging::check_redundant_vc2d → mom_domain_infra::interface::pass_vector
mom_debugging::check_redundant_vt2d → mom_domain_infra::interface::pass_vector
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_domain_infra::interface::pass_vector
mom_dynamics_split_rk2::remap_dyn_split_rk2_aux_vars → mom_domain_infra::interface::pass_vector
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_domain_infra::interface::pass_vector
mom_dynamics_unsplit::step_mom_dyn_unsplit → mom_domain_infra::interface::pass_vector
mom_dynamics_unsplit_rk2::step_mom_dyn_unsplit_rk2 → mom_domain_infra::interface::pass_vector
mom_grid_initialize::initialize_masks → mom_domain_infra::interface::pass_vector
mom_grid_initialize::set_grid_metrics_from_mosaic → mom_domain_infra::interface::pass_vector
mom_hor_visc::hor_visc_gme_setup → mom_domain_infra::interface::pass_vector
mom_hor_visc::horizontal_viscosity_block → mom_domain_infra::interface::pass_vector
mom_ice_shelf::add_shelf_forces → mom_domain_infra::interface::pass_vector
mom_ice_shelf::shelf_calc_flux → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_inner → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_inner_cg → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_inner_cr → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_inner_minres → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::initialize_ice_shelf_dyn → mom_domain_infra::interface::pass_vector
mom_ice_shelf_dynamics::update_velocity_masks → mom_domain_infra::interface::pass_vector
mom_meke::ml_meke_calculate_features → mom_domain_infra::interface::pass_vector
mom_meke::step_forward_meke → mom_domain_infra::interface::pass_vector
mom_meso_sfn_ann::meso_sfn_ann_compute → mom_domain_infra::interface::pass_vector
mom_oda_incupd::apply_oda_incupd → mom_domain_infra::interface::pass_vector
mom_oda_incupd::calc_oda_increments → mom_domain_infra::interface::pass_vector
mom_offline_main::offline_advection_ale → mom_domain_infra::interface::pass_vector
mom_offline_main::offline_advection_layer → mom_domain_infra::interface::pass_vector
mom_offline_main::offline_redistribute_residual → mom_domain_infra::interface::pass_vector
mom_open_boundary::open_boundary_halo_update → mom_domain_infra::interface::pass_vector
mom_open_boundary::radiation_open_bdry_conds → mom_domain_infra::interface::pass_vector
mom_open_boundary::remap_obc_fields → mom_domain_infra::interface::pass_vector
mom_shared_initialization::initialize_grid_rotation_angle → mom_domain_infra::interface::pass_vector
mom_shared_initialization::mom_calculate_grad_coriolis → mom_domain_infra::interface::pass_vector
mom_shared_initialization::reset_face_lengths_file → mom_domain_infra::interface::pass_vector
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_domain_infra::interface::pass_vector
mom_state_initialization::mom_initialize_state → mom_domain_infra::interface::pass_vector
mom_stochastics::stochastics_init → mom_domain_infra::interface::pass_vector
mom_surface_forcing::wind_forcing_by_data_override → mom_domain_infra::interface::pass_vector
mom_surface_forcing::wind_forcing_from_file → mom_domain_infra::interface::pass_vector
mom_tracer_hor_diff::tracer_hordiff → mom_domain_infra::interface::pass_vector
mom_transcribe_grid::copy_dyngrid_to_mom_grid → mom_domain_infra::interface::pass_vector
mom_transcribe_grid::copy_mom_grid_to_dyngrid → mom_domain_infra::interface::pass_vector
mom_vert_friction::vertfpmix → mom_domain_infra::interface::pass_vector
mom_wave_drag::wave_drag_calc → mom_domain_infra::interface::pass_vector
mom_wave_drag::wave_drag_init → mom_domain_infra::interface::pass_vector
mom_wave_interface::surface_bands_by_data_override → mom_domain_infra::interface::pass_vector
mom_wave_interface::update_stokes_drift → mom_domain_infra::interface::pass_vector
mom_wave_interface::update_surface_waves → mom_domain_infra::interface::pass_vector
scm_cvmix_tests::scm_cvmix_tests_wind_forcing → mom_domain_infra::interface::pass_vector
- interface pass_var_start
Initiate a non-blocking halo update on an array
- interface pass_var_complete
Complete a non-blocking halo update on an array
- interface pass_vector_start
Initiate a halo update on a pair of arrays representing the two components of a vector
- interface pass_vector_complete
Complete a halo update on a pair of arrays representing the two components of a vector
- interface create_group_pass
Set up a group of halo updates
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_domain_infra::interface::create_group_pass
mom::initialize_mom → mom_domain_infra::interface::create_group_pass
mom::post_diabatic_halo_updates → mom_domain_infra::interface::create_group_pass
mom::step_mom → mom_domain_infra::interface::create_group_pass
mom::step_mom_thermo → mom_domain_infra::interface::create_group_pass
mom::step_mom_tracer_dyn → mom_domain_infra::interface::create_group_pass
mom_ale::ale_regrid_accelerated → mom_domain_infra::interface::create_group_pass
mom_barotropic::barotropic_init → mom_domain_infra::interface::create_group_pass
mom_barotropic::btstep → mom_domain_infra::interface::create_group_pass
mom_barotropic::btstep_timeloop → mom_domain_infra::interface::create_group_pass
mom_barotropic::initialize_bt_obc → mom_domain_infra::interface::create_group_pass
mom_barotropic::set_local_bt_cont_types → mom_domain_infra::interface::create_group_pass
mom_bulk_mixed_layer::bulkmixedlayer → mom_domain_infra::interface::create_group_pass
mom_diabatic_driver::layered_diabatic → mom_domain_infra::interface::create_group_pass
mom_diagnostics::calculate_energy_diagnostics → mom_domain_infra::interface::create_group_pass
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_domain_infra::interface::create_group_pass
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_domain_infra::interface::create_group_pass
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_domain_infra::interface::create_group_pass
mom_ice_shelf_dynamics::register_ice_shelf_dyn_restarts → mom_domain_infra::interface::create_group_pass
mom_internal_tides::propagate_int_tide → mom_domain_infra::interface::create_group_pass
mom_internal_tides::register_int_tide_restarts → mom_domain_infra::interface::create_group_pass
mom_lateral_mixing_coeffs::calc_resoln_function → mom_domain_infra::interface::create_group_pass
mom_meke::meke_init → mom_domain_infra::interface::create_group_pass
mom_open_boundary::open_boundary_halo_update → mom_domain_infra::interface::create_group_pass
mom_tracer_advect::advect_tracer → mom_domain_infra::interface::create_group_pass
mom_tracer_hor_diff::tracer_hordiff → mom_domain_infra::interface::create_group_pass
mom_vert_friction::vertvisc → mom_domain_infra::interface::create_group_pass
mom_zanna_bolton::compute_energy_source → mom_domain_infra::interface::create_group_pass
mom_zanna_bolton::zb2020_init → mom_domain_infra::interface::create_group_pass
- interface fill_symmetric_edges
Do a set of halo updates that fill in the values at the duplicated edges of a staggered symmetric memory domain
Callers call graph
- interface rescale_comp_data
Rescale the values of an array in its computational domain by a constant factor
Callers call graph
Text view
mom_io::mom_write_field_2d → mom_domain_infra::interface::rescale_comp_data
mom_io::mom_write_field_3d → mom_domain_infra::interface::rescale_comp_data
mom_io::mom_write_field_4d → mom_domain_infra::interface::rescale_comp_data
mom_io::mom_write_field_legacy_2d → mom_domain_infra::interface::rescale_comp_data
mom_io::mom_write_field_legacy_3d → mom_domain_infra::interface::rescale_comp_data
mom_io::mom_write_field_legacy_4d → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_field_2d → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_field_2d_region → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_field_3d → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_field_3d_region → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_field_4d → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_vector_2d → mom_domain_infra::interface::rescale_comp_data
mom_io_infra::read_vector_3d → mom_domain_infra::interface::rescale_comp_data
- interface redistribute_array
Pass an array from one MOM domain to another
- interface clone_MOM_domain
Copy one MOM_domain_type into another
Callers call graph
Text view
mom::initialize_mom → mom_domain_infra::interface::clone_mom_domain
mom_barotropic::barotropic_init → mom_domain_infra::interface::clone_mom_domain
mom_diag_mediator::diag_mediator_init → mom_domain_infra::interface::clone_mom_domain
mom_grid_initialize::set_grid_metrics_from_mosaic → mom_domain_infra::interface::clone_mom_domain
mom_ice_shelf::initialize_ice_shelf → mom_domain_infra::interface::clone_mom_domain
mom_io_file::open_file_infra → mom_domain_infra::interface::clone_mom_domain
mom_oda_driver_mod::init_oda → mom_domain_infra::interface::clone_mom_domain
- interface get_domain_components
Extract the 1-d domain components from a MOM_domain or domain2d
Callers call graph
- interface get_domain_extent
Returns the index ranges that have been stored in a MOM_domain_type
Callers call graph
Text view
mom_diag_mediator::diag_mediator_init → mom_domain_infra::interface::get_domain_extent
mom_domain_infra::same_domain → mom_domain_infra::interface::get_domain_extent
mom_grid::mom_grid_init → mom_domain_infra::interface::get_domain_extent
mom_hor_index::hor_index_init → mom_domain_infra::interface::get_domain_extent
mom_oda_driver_mod::init_oda → mom_domain_infra::interface::get_domain_extent
Functions/Subroutine Documentation
- subroutine pass_var_3d(array, MOM_dom, sideflag, complete, position, halo, clock)
pass_var_3d does a halo update for a three-dimensional array.
- Parameters
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, sothe halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_update_domains (mpp_domains_mod::mpp_update_domains)
- subroutine pass_var_2d(array, MOM_dom, sideflag, complete, position, halo, inner_halo, clock)
pass_var_2d does a halo update for a two-dimensional array.
- Parameters
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
inner_halo [in]
The size of an inner halo to avoid updating, or 0 to avoid updating symmetric memory computational domain points. Setting this >=0 also enforces that complete=.true.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
mpp_update_domains (mpp_domains_mod::mpp_update_domains)
- function pass_var_start_2d(array, MOM_dom, sideflag, position, complete, halo, clock)
pass_var_start_2d starts a halo update for a two-dimensional array.
- Parameters
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
pass_var_start_2d
The integer index for this update.
Callees call graph
External calls
- mpp_domains_mod
mpp_start_update_domains (mpp_domains_mod::mpp_start_update_domains)
- function pass_var_start_3d(array, MOM_dom, sideflag, position, complete, halo, clock)
pass_var_start_3d starts a halo update for a three-dimensional array.
- Parameters
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
pass_var_start_3d
The integer index for this update.
Callees call graph
External calls
- mpp_domains_mod
mpp_start_update_domains (mpp_domains_mod::mpp_start_update_domains)
- subroutine pass_var_complete_2d(id_update, array, MOM_dom, sideflag, position, halo, clock)
pass_var_complete_2d completes a halo update for a two-dimensional array.
- Parameters
id_update [in]
The integer id of this update which has been returned from a previous call to pass_var_start.
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_complete_update_domains (mpp_domains_mod::mpp_complete_update_domains)
- subroutine pass_var_complete_3d(id_update, array, MOM_dom, sideflag, position, halo, clock)
pass_var_complete_3d completes a halo update for a three-dimensional array.
- Parameters
id_update [in]
The integer id of this update which has been returned from a previous call to pass_var_start.
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_complete_update_domains (mpp_domains_mod::mpp_complete_update_domains)
- subroutine pass_vector_2d(u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo, clock)
pass_vector_2d does a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector.
- Parameters
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_update_domains (mpp_domains_mod::mpp_update_domains)
- subroutine fill_vector_symmetric_edges_2d(u_cmpt, v_cmpt, MOM_dom, stagger, scalar, clock)
fill_vector_symmetric_edges_2d does an usual set of halo updates that only fill in the values at the edge of a pair of symmetric memory two-dimensional arrays representing the components of a two-dimensional horizontal vector. If symmetric memory is not being used, this subroutine does nothing except to possibly turn optional cpu clocks on or off.
- Parameters
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
scalar [in]
An optional argument indicating whether.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_get_boundary (mpp_domains_mod::mpp_get_boundary)
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
- subroutine pass_vector_3d(u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo, clock)
pass_vector_3d does a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector.
- Parameters
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_update_domains (mpp_domains_mod::mpp_update_domains)
- function pass_vector_start_2d(u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo, clock)
pass_vector_start_2d starts a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector.
- Parameters
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
pass_vector_start_2d
The integer index for this update.
Callees call graph
External calls
- mpp_domains_mod
mpp_start_update_domains (mpp_domains_mod::mpp_start_update_domains)
- function pass_vector_start_3d(u_cmpt, v_cmpt, MOM_dom, direction, stagger, complete, halo, clock)
pass_vector_start_3d starts a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector.
- Parameters
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
complete [in]
An optional argument indicating whether the halo updates should be completed before progress resumes. Omitting complete is the same as setting complete to .true.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
pass_vector_start_3d
The integer index for this update.
Callees call graph
External calls
- mpp_domains_mod
mpp_start_update_domains (mpp_domains_mod::mpp_start_update_domains)
- subroutine pass_vector_complete_2d(id_update, u_cmpt, v_cmpt, MOM_dom, direction, stagger, halo, clock)
pass_vector_complete_2d completes a halo update for a pair of two-dimensional arrays representing the components of a two-dimensional horizontal vector.
- Parameters
id_update [in]
The integer id of this update which has been returned from a previous call to pass_var_start.
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_complete_update_domains (mpp_domains_mod::mpp_complete_update_domains)
- subroutine pass_vector_complete_3d(id_update, u_cmpt, v_cmpt, MOM_dom, direction, stagger, halo, clock)
pass_vector_complete_3d completes a halo update for a pair of three-dimensional arrays representing the components of a three-dimensional horizontal vector.
- Parameters
id_update [in]
The integer id of this update which has been returned from a previous call to pass_var_start.
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_complete_update_domains (mpp_domains_mod::mpp_complete_update_domains)
- subroutine create_var_group_pass_2d(group, array, MOM_dom, sideflag, position, halo, clock)
create_var_group_pass_2d sets up a group of two-dimensional array halo updates.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_create_group_update (mpp_domains_mod::mpp_create_group_update)
mpp_group_update_initialized (mpp_domains_mod::mpp_group_update_initialized)
mpp_reset_group_update_field (mpp_domains_mod::mpp_reset_group_update_field)
- subroutine create_var_group_pass_3d(group, array, MOM_dom, sideflag, position, halo, clock)
create_var_group_pass_3d sets up a group of three-dimensional array halo updates.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
array [inout]
The array which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
sideflag [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if sideflag is omitted.
position [in]
An optional argument indicating the position. This is CENTER by default and is often CORNER, but could also be EAST_FACE or NORTH_FACE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_create_group_update (mpp_domains_mod::mpp_create_group_update)
mpp_group_update_initialized (mpp_domains_mod::mpp_group_update_initialized)
mpp_reset_group_update_field (mpp_domains_mod::mpp_reset_group_update_field)
- subroutine create_vector_group_pass_2d(group, u_cmpt, v_cmpt, MOM_dom, direction, stagger, halo, clock)
create_vector_group_pass_2d sets up a group of two-dimensional vector halo updates.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_create_group_update (mpp_domains_mod::mpp_create_group_update)
mpp_group_update_initialized (mpp_domains_mod::mpp_group_update_initialized)
mpp_reset_group_update_field (mpp_domains_mod::mpp_reset_group_update_field)
- subroutine create_vector_group_pass_3d(group, u_cmpt, v_cmpt, MOM_dom, direction, stagger, halo, clock)
create_vector_group_pass_3d sets up a group of three-dimensional vector halo updates.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
u_cmpt [inout]
The nominal zonal (u) component of the vector pair which is having its halos points exchanged.
v_cmpt [inout]
The nominal meridional (v) component of the vector pair which is having its halos points exchanged.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
direction [in]
An optional integer indicating which directions the data should be sent. It is TO_ALL or the sum of any of TO_EAST, TO_WEST, TO_NORTH, and TO_SOUTH, possibly plus SCALAR_PAIR if these are paired non-directional scalars discretized at the typical vector component locations. For example, TO_EAST sends the data to the processor to the east, so the halos on the western side are filled. TO_ALL is the default if omitted.
stagger [in]
An optional flag, which may be one of A_GRID, BGRID_NE, or CGRID_NE, indicating where the two components of the vector are discretized. Omitting stagger is the same as setting it to CGRID_NE.
halo [in]
The size of the halo to update - the full halo by default.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
External calls
- mpp_domains_mod
mpp_create_group_update (mpp_domains_mod::mpp_create_group_update)
mpp_group_update_initialized (mpp_domains_mod::mpp_group_update_initialized)
mpp_reset_group_update_field (mpp_domains_mod::mpp_reset_group_update_field)
- subroutine do_group_pass(group, MOM_dom, clock)
do_group_pass carries out a group halo update.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
Callers call graph
Text view
mom::ale_regridding_and_remapping → mom_domain_infra::do_group_pass
mom::post_diabatic_halo_updates → mom_domain_infra::do_group_pass
mom_ale::ale_regrid_accelerated → mom_domain_infra::do_group_pass
mom_barotropic::barotropic_init → mom_domain_infra::do_group_pass
mom_barotropic::btstep_timeloop → mom_domain_infra::do_group_pass
mom_barotropic::set_local_bt_cont_types → mom_domain_infra::do_group_pass
mom_barotropic::set_up_bt_obc → mom_domain_infra::do_group_pass
mom_bulk_mixed_layer::bulkmixedlayer → mom_domain_infra::do_group_pass
mom_diabatic_driver::layered_diabatic → mom_domain_infra::do_group_pass
mom_diagnostics::calculate_energy_diagnostics → mom_domain_infra::do_group_pass
mom_dynamics_split_rk2::initialize_dyn_split_rk2 → mom_domain_infra::do_group_pass
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_domain_infra::do_group_pass
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_domain_infra::do_group_pass
mom_ice_shelf_dynamics::ice_shelf_solve_outer → mom_domain_infra::do_group_pass
mom_internal_tides::propagate_int_tide → mom_domain_infra::do_group_pass
mom_lateral_mixing_coeffs::calc_resoln_function → mom_domain_infra::do_group_pass
mom_meke::step_forward_meke → mom_domain_infra::do_group_pass
mom_open_boundary::open_boundary_halo_update → mom_domain_infra::do_group_pass
mom_open_boundary::remap_obc_fields → mom_domain_infra::do_group_pass
mom_tracer_advect::advect_tracer → mom_domain_infra::do_group_pass
mom_tracer_hor_diff::tracer_epipycnal_ml_diff → mom_domain_infra::do_group_pass
mom_tracer_hor_diff::tracer_hordiff → mom_domain_infra::do_group_pass
mom_vert_friction::vertvisc → mom_domain_infra::do_group_pass
mom_zanna_bolton::compute_energy_source → mom_domain_infra::do_group_pass
mom_zanna_bolton::filter_velocity_gradients → mom_domain_infra::do_group_pass
External calls
- mpp_domains_mod
mpp_do_group_update (mpp_domains_mod::mpp_do_group_update)
- subroutine start_group_pass(group, MOM_dom, clock)
start_group_pass starts out a group halo update.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
Callers call graph
Text view
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_domain_infra::start_group_pass
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_domain_infra::start_group_pass
mom_internal_tides::propagate_int_tide → mom_domain_infra::start_group_pass
mom_zanna_bolton::filter_stress → mom_domain_infra::start_group_pass
mom_zanna_bolton::filter_velocity_gradients → mom_domain_infra::start_group_pass
External calls
- mpp_domains_mod
mpp_start_group_update (mpp_domains_mod::mpp_start_group_update)
- subroutine complete_group_pass(group, MOM_dom, clock)
complete_group_pass completes a group halo update.
- Parameters
group [inout]
The data type that store information for group update. This data will be used in do_group_pass.
MOM_dom [inout]
The MOM_domain_type containing the mpp_domain needed to determine where data should be sent.
clock [in]
The handle for a cpu time clock that should be started then stopped to time this routine.
Callees call graph
Callers call graph
Text view
mom_barotropic::btstep → mom_domain_infra::complete_group_pass
mom_dynamics_split_rk2::step_mom_dyn_split_rk2 → mom_domain_infra::complete_group_pass
mom_dynamics_split_rk2b::step_mom_dyn_split_rk2b → mom_domain_infra::complete_group_pass
mom_internal_tides::propagate_int_tide → mom_domain_infra::complete_group_pass
mom_zanna_bolton::filter_stress → mom_domain_infra::complete_group_pass
mom_zanna_bolton::filter_velocity_gradients → mom_domain_infra::complete_group_pass
External calls
- mpp_domains_mod
mpp_complete_group_update (mpp_domains_mod::mpp_complete_group_update)
- subroutine redistribute_array_2d(Domain1, array1, Domain2, array2, complete)
Pass a 2-D array from one MOM domain to another
- Parameters
Domain1 [in]
The MOM domain from which to extract information.
array1 [in]
The array from which to extract information.
Domain2 [in]
The MOM domain receiving information.
array2 [out]
The array receiving information.
complete [in]
If true, finish communication before proceeding.
External calls
- mpp_domains_mod
mpp_redistribute (mpp_domains_mod::mpp_redistribute)
- subroutine redistribute_array_3d(Domain1, array1, Domain2, array2, complete)
Pass a 3-D array from one MOM domain to another
- Parameters
Domain1 [in]
The MOM domain from which to extract information.
array1 [in]
The array from which to extract information.
Domain2 [in]
The MOM domain receiving information.
array2 [out]
The array receiving information.
complete [in]
If true, finish communication before proceeding.
External calls
- mpp_domains_mod
mpp_redistribute (mpp_domains_mod::mpp_redistribute)
- subroutine redistribute_array_4d(Domain1, array1, Domain2, array2, complete)
Pass a 4-D array from one MOM domain to another
- Parameters
Domain1 [in]
The MOM domain from which to extract information.
array1 [in]
The array from which to extract information.
Domain2 [in]
The MOM domain receiving information.
array2 [out]
The array receiving information.
complete [in]
If true, finish communication before proceeding.
External calls
- mpp_domains_mod
mpp_redistribute (mpp_domains_mod::mpp_redistribute)
- subroutine rescale_comp_data_4d(domain, array, scale, zero_zeros)
Rescale the values of a 4-D array in its computational domain by a constant factor
- Parameters
domain [in]
MOM domain from which to extract information
array [inout]
The array which is having the data in its computational domain rescaled
scale [in]
A scaling factor by which to multiply the values in the computational domain of array
zero_zeros [in]
If present and true, convert negative zeros into ordinary signless zeros.
- subroutine rescale_comp_data_3d(domain, array, scale, zero_zeros)
Rescale the values of a 3-D array in its computational domain by a constant factor
- Parameters
domain [in]
MOM domain from which to extract information
array [inout]
The array which is having the data in its computational domain rescaled
scale [in]
A scaling factor by which to multiply the values in the computational domain of array
zero_zeros [in]
If present and true, convert negative zeros into ordinary signless zeros.
- subroutine rescale_comp_data_2d(domain, array, scale, zero_zeros)
Rescale the values of a 2-D array in its computational domain by a constant factor
- Parameters
domain [in]
MOM domain from which to extract information
array [inout]
The array which is having the data in its computational domain rescaled
scale [in]
A scaling factor by which to multiply the values in the computational domain of array
zero_zeros [in]
If present and true, convert negative zeros into ordinary signless zeros.
- subroutine create_MOM_domain(MOM_dom, n_global, n_halo, reentrant, tripolar_N, layout, io_layout, domain_name, mask_table, symmetric, thin_halos, nonblocking)
create_MOM_domain creates and initializes a MOM_domain_type variables, based on the information provided in arguments.
- Parameters
MOM_dom
A pointer to the MOM_domain_type being defined here.
n_global [in]
The number of points on the global grid in the i- and j-directions
n_halo [in]
The number of halo points on each processor
reentrant [in]
If true the grid is periodic in the i- and j- directions
tripolar_N [in]
If true the grid uses northern tripolar connectivity
layout [in]
The layout of logical PEs in the i- and j-directions.
io_layout [in]
The layout for parallel input and output.
domain_name [in]
A name for this domain, "MOM" if missing.
mask_table [in]
The full relative or absolute path to the mask table.
symmetric [in]
If present, this specifies whether this domain uses symmetric memory, or true if missing.
thin_halos [in]
If present, this specifies whether to permit the use of thin halo updates, or true if missing.
nonblocking [in]
If present, this specifies whether to permit the use of nonblocking halo updates, or false if missing.
Callees call graph
External calls
- fms_io_utils_mod
file_exists (fms_io_utils_mod::file_exists)
parse_mask_table (fms_io_utils_mod::parse_mask_table)
- subroutine deallocate_MOM_domain(MOM_domain, cursory)
dealloc_MOM_domain deallocates memory associated with a pointer to a MOM_domain_type and potentially all of its contents
- Parameters
MOM_domain
A pointer to the MOM_domain_type being deallocated
cursory [in]
If true do not deallocate fields associated with the underlying infrastructure
Callers call graph
Text view
mom::initialize_mom → mom_domain_infra::deallocate_mom_domain
mom_barotropic::barotropic_end → mom_domain_infra::deallocate_mom_domain
mom_dyn_horgrid::destroy_dyn_horgrid → mom_domain_infra::deallocate_mom_domain
mom_grid::mom_grid_end → mom_domain_infra::deallocate_mom_domain
mom_grid_initialize::set_grid_metrics_from_mosaic → mom_domain_infra::deallocate_mom_domain
mom_io_file::close_file_infra → mom_domain_infra::deallocate_mom_domain
External calls
- mpp_domains_mod
mpp_deallocate_domain (mpp_domains_mod::mpp_deallocate_domain)
- function MOM_thread_affinity_set()
MOM_thread_affinity_set returns true if the number of openMP threads have been set to a value greater than 1.
- subroutine set_MOM_thread_affinity(ocean_nthreads, ocean_hyper_thread)
set_MOM_thread_affinity sets the number of openMP threads to use with the ocean.
- Parameters
ocean_nthreads [in]
Number of openMP threads to use for the ocean model
ocean_hyper_thread [in]
If true, use hyper threading
- subroutine get_domain_components_MD(MOM_dom, x_domain, y_domain)
This subroutine retrieves the 1-d domains that make up the 2d-domain in a MOM_domain
- Parameters
MOM_dom [in]
The MOM_domain whose contents are being extracted
x_domain [inout]
The 1-d logical x-domain
y_domain [inout]
The 1-d logical y-domain
External calls
- mpp_domains_mod
mpp_get_domain_components (mpp_domains_mod::mpp_get_domain_components)
- subroutine get_domain_components_d2D(domain, x_domain, y_domain)
This subroutine retrieves the 1-d domains that make up a 2d-domain
- Parameters
domain [in]
The 2D domain whose contents are being extracted
x_domain [inout]
The 1-d logical x-domain
y_domain [inout]
The 1-d logical y-domain
External calls
- mpp_domains_mod
mpp_get_domain_components (mpp_domains_mod::mpp_get_domain_components)
- subroutine clone_MD_to_MD(MD_in, MOM_dom, min_halo, halo_size, symmetric, domain_name, turns, refine, extra_halo, io_layout)
clone_MD_to_MD copies one MOM_domain_type into another, while allowing some properties of the new type to differ from the original one.
- Parameters
MD_in [in]
An existing MOM_domain
MOM_dom
A pointer to a MOM_domain that will be allocated if it is unassociated, and will have data copied from MD_in
min_halo [inout]
If present, this sets the minimum halo size for this domain in the i- and j- directions, and returns the actual halo size used.
halo_size [in]
If present, this sets the halo size for the domain in the i- and j-directions. min_halo and halo_size can not both be present.
symmetric [in]
If present, this specifies whether the new domain is symmetric, regardless of whether the macro SYMMETRIC_MEMORY_ is defined.
domain_name [in]
A name for the new domain, copied from MD_in if missing.
turns [in]
Number of quarter turns
refine [in]
A factor by which to enhance the grid resolution.
extra_halo [in]
An extra number of points in the halos compared with MD_in
io_layout [in]
A user-defined IO layout to replace the domain's IO layout
- subroutine clone_MD_to_d2D(MD_in, mpp_domain, min_halo, halo_size, symmetric, domain_name, turns, xextent, yextent, coarsen)
clone_MD_to_d2D uses information from a MOM_domain_type to create a new domain2d type, while allowing some properties of the new type to differ from the original one.
- Parameters
MD_in [in]
An existing MOM_domain to be cloned
mpp_domain [inout]
The new mpp_domain to be set up
min_halo [inout]
If present, this sets the minimum halo size for this domain in the i- and j- directions, and returns the actual halo size used.
halo_size [in]
If present, this sets the halo size for the domain in the i- and j-directions. min_halo and halo_size can not both be present.
symmetric [in]
If present, this specifies whether the new domain is symmetric, regardless of whether the macro SYMMETRIC_MEMORY_ is defined or whether MD_in is symmetric.
domain_name [in]
A name for the new domain, "MOM" if missing.
turns [in]
Number of quarter turns - not implemented here.
coarsen [in]
A factor by which to coarsen this grid. The default of 1 is for no coarsening.
xextent [in]
The number of grid points in the tracer computational domain for division of the x-layout.
yextent [in]
The number of grid points in the tracer computational domain for division of the y-layout.
Callers call graph
External calls
- mpp_domains_mod
mpp_define_domains (mpp_domains_mod::mpp_define_domains)
mpp_define_io_domain (mpp_domains_mod::mpp_define_io_domain)
- subroutine get_domain_extent_MD(Domain, isc, iec, jsc, jec, isd, ied, jsd, jed, isg, ieg, jsg, jeg, idg_offset, jdg_offset, symmetric, local_indexing, index_offset, coarsen)
Returns the index ranges that have been stored in a MOM_domain_type
- Parameters
Domain [in]
The MOM domain from which to extract information
isc [out]
The start i-index of the computational domain
iec [out]
The end i-index of the computational domain
jsc [out]
The start j-index of the computational domain
jec [out]
The end j-index of the computational domain
isd [out]
The start i-index of the data domain
ied [out]
The end i-index of the data domain
jsd [out]
The start j-index of the data domain
jed [out]
The end j-index of the data domain
isg [out]
The start i-index of the global domain
ieg [out]
The end i-index of the global domain
jsg [out]
The start j-index of the global domain
jeg [out]
The end j-index of the global domain
idg_offset [out]
The offset between the corresponding global and data i-index spaces.
jdg_offset [out]
The offset between the corresponding global and data j-index spaces.
symmetric [out]
True if symmetric memory is used.
local_indexing [in]
If true, local tracer array indices start at 1, as in most MOM6 code. The default is true.
index_offset [in]
A fixed additional offset to all indices. This can be useful for some types of debugging with dynamic memory allocation. The default is 0.
coarsen [in]
The index of the factor by which the grid is coarsened. The default is 0, for no coarsening.
External calls
- mpp_domains_mod
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
mpp_get_global_domain (mpp_domains_mod::mpp_get_global_domain)
- subroutine get_domain_extent_d2D(Domain, isc, iec, jsc, jec, isd, ied, jsd, jed)
Returns the index ranges that have been stored in a domain2D type
- Parameters
Domain [in]
The MOM domain from which to extract information
isc [out]
The start i-index of the computational domain
iec [out]
The end i-index of the computational domain
jsc [out]
The start j-index of the computational domain
jec [out]
The end j-index of the computational domain
isd [out]
The start i-index of the data domain
ied [out]
The end i-index of the data domain
jsd [out]
The start j-index of the data domain
jed [out]
The end j-index of the data domain
External calls
- mpp_domains_mod
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
- subroutine get_simple_array_i_ind(domain, size, is, ie, symmetric)
Return the (potentially symmetric) computational domain i-bounds for an array passed without index specifications (i.e. indices start at 1) based on an array size.
- Parameters
domain [in]
MOM domain from which to extract information
size [in]
The i-array size
is [out]
The computational domain starting i-index.
ie [out]
The computational domain ending i-index.
symmetric [in]
If present, indicates whether symmetric sizes can be considered.
Callers call graph
Text view
mom_data_override_infra::data_override_md → mom_domain_infra::get_simple_array_i_ind
mom_domain_infra::rescale_comp_data_2d → mom_domain_infra::get_simple_array_i_ind
mom_domain_infra::rescale_comp_data_3d → mom_domain_infra::get_simple_array_i_ind
mom_domain_infra::rescale_comp_data_4d → mom_domain_infra::get_simple_array_i_ind
External calls
- mpp_domains_mod
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
- subroutine get_simple_array_j_ind(domain, size, js, je, symmetric)
Return the (potentially symmetric) computational domain j-bounds for an array passed without index specifications (i.e. indices start at 1) based on an array size.
- Parameters
domain [in]
MOM domain from which to extract information
size [in]
The j-array size
js [out]
The computational domain starting j-index.
je [out]
The computational domain ending j-index.
symmetric [in]
If present, indicates whether symmetric sizes can be considered.
Callers call graph
Text view
mom_data_override_infra::data_override_md → mom_domain_infra::get_simple_array_j_ind
mom_domain_infra::rescale_comp_data_2d → mom_domain_infra::get_simple_array_j_ind
mom_domain_infra::rescale_comp_data_3d → mom_domain_infra::get_simple_array_j_ind
mom_domain_infra::rescale_comp_data_4d → mom_domain_infra::get_simple_array_j_ind
External calls
- mpp_domains_mod
mpp_get_compute_domain (mpp_domains_mod::mpp_get_compute_domain)
mpp_get_data_domain (mpp_domains_mod::mpp_get_data_domain)
- subroutine invert(array)
Invert the contents of a 1-d array
- Parameters
array [inout]
The 1-d array to invert
- subroutine get_global_shape(domain, niglobal, njglobal)
Returns the global shape of h-point arrays
- Parameters
domain [in]
MOM domain from which to extract information
niglobal [out]
i-index global size of h-point arrays
njglobal [out]
j-index global size of h-point arrays
Callers call graph
- subroutine compute_block_extent(isg, ieg, ndivs, ibegin, iend)
Get the array ranges in one dimension for the divisions of a global index space (alternative to compute_extent)
- Parameters
isg [in]
The starting index of the global index space
ieg [in]
The ending index of the global index space
ndivs [in]
The number of divisions
ibegin [out]
The starting index of each division
iend [out]
The ending index of each division
External calls
- mpp_domains_mod
mpp_compute_block_extent (mpp_domains_mod::mpp_compute_block_extent)
- subroutine compute_extent(isg, ieg, ndivs, ibegin, iend)
Get the array ranges in one dimension for the divisions of a global index space
- Parameters
isg [in]
The starting index of the global index space
ieg [in]
The ending index of the global index space
ndivs [in]
The number of divisions
ibegin [out]
The starting index of each division
iend [out]
The ending index of each division
External calls
- mpp_domains_mod
mpp_compute_extent (mpp_domains_mod::mpp_compute_extent)
- subroutine broadcast_domain(domain)
Broadcast a 2-d domain from the root PE to the other PEs
- Parameters
domain [inout]
The domain2d type that will be shared across PEs.
External calls
- mpp_domains_mod
mpp_broadcast_domain (mpp_domains_mod::mpp_broadcast_domain)
- subroutine global_field(domain, local, global)
Broadcast an entire 2-d array from the root processor to all others.
- Parameters
domain [inout]
The domain2d type that describes the decomposition
local [in]
The portion of the array on the local PE
global [out]
The whole global array
Callers call graph
External calls
- mpp_domains_mod
mpp_global_field (mpp_domains_mod::mpp_global_field)
- logical function same_domain(domain_a, domain_b)
same_domain returns true if two domains use the same list of PEs and layouts and have the same size computational domains, and false if the domains do not conform with each other. Different halo sizes or indexing conventions do not alter the results.
- Parameters
domain_a [in]
The first domain in the comparison
domain_b [in]
The second domain in the comparison
Callees call graph
External calls
- mpp_domains_mod
mpp_get_layout (mpp_domains_mod::mpp_get_layout)
- subroutine get_layout_extents(Domain, extent_i, extent_j)
Returns arrays of the i- and j- sizes of the h-point computational domains for each element of the grid layout. Any input values in the extent arrays are discarded, so they are effectively intent out despite their declared intent of inout.
- Parameters
domain [in]
MOM domain from which to extract information
extent_i [inout]
The number of points in the i-direction in each i-row of the layout
extent_j [inout]
The number of points in the j-direction in each j-row of the layout
Callers call graph
External calls
- mpp_domains_mod
mpp_get_domain_extents (mpp_domains_mod::mpp_get_domain_extents)
- subroutine set_domain(Domain)
Set the associated domain for internal FMS I/O operations.
- Parameters
Domain [in]
MOM domain to be designated as the internal FMS I/O domain
subroutine nullify_domain