MOM_shared_initialization module reference
Code that initializes fixed aspects of the model grid, such as horizontal grid metrics, topography and Coriolis, and can be shared between components.
Functions/Subroutines
MOM_shared_init_init just writes the code version. |
|
MOM_initialize_rotation makes the appropriate call to set up the Coriolis parameter. |
|
Calculates the components of grad f (Coriolis parameter) |
|
Return the global maximum ocean bottom depth in the same units as the input depth. |
|
Read time mean ocean sea level from a file |
|
Read gridded depths from file |
|
Applies a list of topography overrides read from a netcdf file |
|
initialize the bathymetry based on one of several named idealized configurations |
|
limit_topography ensures that min_depth < D(x,y) < max_depth |
|
This subroutine sets up the Coriolis parameter for a sphere |
|
This subroutine sets up the Coriolis parameter for a beta-plane or f-plane |
|
initialize_grid_rotation_angle initializes the arrays with the sine and cosine of the angle between logical north on the grid and true north. |
|
Return the modulo value of x in an interval [xc-(Lx/2) xc+(Lx/2)] If Lx<=0, then it returns x without applying modulo arithmetic. |
|
This subroutine sets the open face lengths at selected points to restrict passages to their observed widths based on a named set of sizes. |
|
This subroutine sets the open face lengths at selected points to restrict passages to their observed widths from a arrays read from a file. |
|
This subroutine sets the open face lengths at selected points to restrict passages to their observed widths from a list read from a file. |
|
This subroutine reads and counts the non-blank lines in the face length list file, after removing comments. |
|
Read from a file the maximum, minimum and average bathymetry at velocity points, for the use of porous barrier. Note that we assume the depth values in the sub-grid bathymetry file of the same convention as in-cell bathymetry file, i.e. positive below the sea surface and increasing downward; while in subroutine reset_face_lengths_list, it is implied that read-in fields min_bathy, max_bathy and avg_bathy from the input file CHANNEL_LIST_FILE all have negative values below the surface. Therefore, to ensure backward compatibility, all signs of the variable are inverted here. And porous_Dmax[UV] = shallowest point, porous_Dmin[UV] = deepest point |
|
Set the bathymetry at velocity points to be the maximum of the depths at the neighoring tracer points. |
|
Set the bathymetry at velocity points to be the minimum of the depths at the neighoring tracer points. |
|
Pre-compute global integrals of grid quantities (like masked ocean area) for later use in reporting diagnostics |
|
Write out a file describing the topography, Coriolis parameter, grid locations and various other fixed fields from the grid. |
Functions/Subroutine Documentation
Callees call graph
Callees call graph
Text view
mom_shared_initialization::mom_initialize_rotation → mom_error_handler::calltree_enter
mom_shared_initialization::mom_initialize_rotation → mom_error_handler::calltree_leave
mom_shared_initialization::mom_initialize_rotation → mom_error_handler::mom_error
mom_shared_initialization::mom_initialize_rotation → mom_file_parser::interface::get_param
mom_shared_initialization::mom_initialize_rotation → mom_shared_initialization::set_rotation_beta_plane
mom_shared_initialization::mom_initialize_rotation → mom_shared_initialization::set_rotation_planetary
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Text view
mom_shared_initialization::set_meansl_from_file → mom_domain_infra::interface::pass_var
mom_shared_initialization::set_meansl_from_file → mom_error_handler::calltree_enter
mom_shared_initialization::set_meansl_from_file → mom_error_handler::calltree_leave
mom_shared_initialization::set_meansl_from_file → mom_error_handler::mom_error
mom_shared_initialization::set_meansl_from_file → mom_file_parser::interface::get_param
mom_shared_initialization::set_meansl_from_file → mom_file_parser::interface::log_param
mom_shared_initialization::set_meansl_from_file → mom_io::interface::mom_read_data
mom_shared_initialization::set_meansl_from_file → mom_io_infra::interface::file_exists
mom_shared_initialization::set_meansl_from_file → mom_string_functions::slasher
Callers call graph
Callees call graph
Text view
mom_shared_initialization::initialize_topography_from_file → mom_error_handler::calltree_enter
mom_shared_initialization::initialize_topography_from_file → mom_error_handler::calltree_leave
mom_shared_initialization::initialize_topography_from_file → mom_error_handler::mom_error
mom_shared_initialization::initialize_topography_from_file → mom_file_parser::interface::get_param
mom_shared_initialization::initialize_topography_from_file → mom_file_parser::interface::log_param
mom_shared_initialization::initialize_topography_from_file → mom_io::interface::mom_read_data
mom_shared_initialization::initialize_topography_from_file → mom_io_infra::interface::file_exists
mom_shared_initialization::initialize_topography_from_file → mom_shared_initialization::apply_topography_edits_from_file
mom_shared_initialization::initialize_topography_from_file → mom_string_functions::slasher
Callers call graph
Callees call graph
Text view
mom_shared_initialization::apply_topography_edits_from_file → mom_error_handler::calltree_enter
mom_shared_initialization::apply_topography_edits_from_file → mom_error_handler::calltree_leave
mom_shared_initialization::apply_topography_edits_from_file → mom_error_handler::mom_error
mom_shared_initialization::apply_topography_edits_from_file → mom_error_infra::is_root_pe
mom_shared_initialization::apply_topography_edits_from_file → mom_file_parser::interface::get_param
mom_shared_initialization::apply_topography_edits_from_file → mom_io::close_file_to_read
mom_shared_initialization::apply_topography_edits_from_file → mom_io::field_size
mom_shared_initialization::apply_topography_edits_from_file → mom_io::interface::read_variable
mom_shared_initialization::apply_topography_edits_from_file → mom_io::open_file_to_read
mom_shared_initialization::apply_topography_edits_from_file → mom_io_infra::interface::file_exists
mom_shared_initialization::apply_topography_edits_from_file → mom_string_functions::slasher
Callers call graph
Callees call graph
Text view
mom_shared_initialization::initialize_topography_named → mom_error_handler::calltree_enter
mom_shared_initialization::initialize_topography_named → mom_error_handler::calltree_leave
mom_shared_initialization::initialize_topography_named → mom_error_handler::mom_error
mom_shared_initialization::initialize_topography_named → mom_error_handler::mom_mesg
mom_shared_initialization::initialize_topography_named → mom_file_parser::interface::get_param
Callers call graph
Callees call graph
Text view
mom_shared_initialization::limit_topography → mom_error_handler::calltree_enter
mom_shared_initialization::limit_topography → mom_error_handler::calltree_leave
mom_shared_initialization::limit_topography → mom_error_handler::mom_error
mom_shared_initialization::limit_topography → mom_file_parser::interface::get_param
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Text view
mom_shared_initialization::set_rotation_beta_plane → mom_error_handler::calltree_enter
mom_shared_initialization::set_rotation_beta_plane → mom_error_handler::calltree_leave
mom_shared_initialization::set_rotation_beta_plane → mom_error_handler::mom_error
mom_shared_initialization::set_rotation_beta_plane → mom_file_parser::interface::get_param
Callers call graph
Callees call graph
Text view
mom_shared_initialization::initialize_grid_rotation_angle → mom_domain_infra::interface::pass_var
mom_shared_initialization::initialize_grid_rotation_angle → mom_domain_infra::interface::pass_vector
mom_shared_initialization::initialize_grid_rotation_angle → mom_file_parser::interface::get_param
mom_shared_initialization::initialize_grid_rotation_angle → mom_shared_initialization::modulo_around_point
Callers call graph
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Text view
mom_shared_initialization::reset_face_lengths_file → mom_domain_infra::interface::pass_vector
mom_shared_initialization::reset_face_lengths_file → mom_error_handler::calltree_enter
mom_shared_initialization::reset_face_lengths_file → mom_error_handler::calltree_leave
mom_shared_initialization::reset_face_lengths_file → mom_error_handler::mom_error
mom_shared_initialization::reset_face_lengths_file → mom_error_infra::is_root_pe
mom_shared_initialization::reset_face_lengths_file → mom_file_parser::interface::get_param
mom_shared_initialization::reset_face_lengths_file → mom_file_parser::interface::log_param
mom_shared_initialization::reset_face_lengths_file → mom_io::interface::mom_read_vector
mom_shared_initialization::reset_face_lengths_file → mom_io_infra::interface::file_exists
mom_shared_initialization::reset_face_lengths_file → mom_string_functions::slasher
Callers call graph
Callees call graph
Text view
mom_shared_initialization::reset_face_lengths_list → mom_coms_infra::interface::broadcast
mom_shared_initialization::reset_face_lengths_list → mom_coms_infra::interface::sum_across_pes
mom_shared_initialization::reset_face_lengths_list → mom_coms_infra::root_pe
mom_shared_initialization::reset_face_lengths_list → mom_error_handler::calltree_enter
mom_shared_initialization::reset_face_lengths_list → mom_error_handler::calltree_leave
mom_shared_initialization::reset_face_lengths_list → mom_error_handler::mom_error
mom_shared_initialization::reset_face_lengths_list → mom_error_infra::is_root_pe
mom_shared_initialization::reset_face_lengths_list → mom_file_parser::interface::get_param
mom_shared_initialization::reset_face_lengths_list → mom_file_parser::interface::log_param
mom_shared_initialization::reset_face_lengths_list → mom_io_infra::interface::file_exists
mom_shared_initialization::reset_face_lengths_list → mom_shared_initialization::read_face_length_list
mom_shared_initialization::reset_face_lengths_list → mom_string_functions::slasher
mom_shared_initialization::reset_face_lengths_list → mom_string_functions::uppercase
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Text view
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_domain_infra::interface::pass_vector
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_error_handler::calltree_enter
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_error_handler::calltree_leave
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_error_handler::mom_error
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_file_parser::interface::get_param
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_file_parser::interface::log_param
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_io::interface::mom_read_vector
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_io_infra::interface::file_exists
mom_shared_initialization::set_subgrid_topo_at_vel_from_file → mom_string_functions::slasher
Callers call graph
Callers call graph
Callers call graph
Callees call graph
Callers call graph
Callees call graph
Text view
mom_shared_initialization::write_ocean_geometry_file → mom_error_handler::calltree_enter
mom_shared_initialization::write_ocean_geometry_file → mom_error_handler::calltree_leave
mom_shared_initialization::write_ocean_geometry_file → mom_file_parser::interface::get_param
mom_shared_initialization::write_ocean_geometry_file → mom_io::create_mom_file
mom_shared_initialization::write_ocean_geometry_file → mom_io::insert_ensemble_appendix
mom_shared_initialization::write_ocean_geometry_file → mom_io::interface::mom_write_field
mom_shared_initialization::write_ocean_geometry_file → mom_io::var_desc