MOM6
|
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 | |
subroutine, public | mom_shared_init_init (PF) |
MOM_shared_init_init just writes the code version. More... | |
subroutine, public | mom_initialize_rotation (f, G, PF) |
MOM_initialize_rotation makes the appropriate call to set up the Coriolis parameter. More... | |
subroutine, public | mom_calculate_grad_coriolis (dF_dx, dF_dy, G) |
Calculates the components of grad f (Coriolis parameter) More... | |
real function, public | diagnosemaximumdepth (D, G) |
Return the global maximum ocean bottom depth in m. More... | |
subroutine, public | initialize_topography_from_file (D, G, param_file) |
Read gridded depths from file. More... | |
subroutine, public | apply_topography_edits_from_file (D, G, param_file) |
Applies a list of topography overrides read from a netcdf file. More... | |
subroutine, public | initialize_topography_named (D, G, param_file, topog_config, max_depth) |
initialize the bathymetry based on one of several named idealized configurations More... | |
subroutine, public | limit_topography (D, G, param_file, max_depth) |
limit_topography ensures that min_depth < D(x,y) < max_depth More... | |
subroutine, public | set_rotation_planetary (f, G, param_file) |
subroutine, public | set_rotation_beta_plane (f, G, param_file) |
subroutine, public | initialize_grid_rotation_angle (G, PF) |
initialize_grid_rotation_angle initializes the arrays with the sine and cosine of the angle between logical north on the grid and true north. More... | |
subroutine, public | reset_face_lengths_named (G, param_file, name) |
subroutine, public | reset_face_lengths_file (G, param_file) |
subroutine, public | reset_face_lengths_list (G, param_file) |
subroutine, public | read_face_length_list (iounit, filename, num_lines, lines) |
subroutine, public | set_velocity_depth_max (G) |
Set the bathymetry at velocity points to be the maximum of the depths at the neighoring tracer points. More... | |
subroutine, public | set_velocity_depth_min (G) |
Set the bathymetry at velocity points to be the minimum of the depths at the neighoring tracer points. More... | |
subroutine, public | compute_global_grid_integrals (G) |
Pre-compute global integrals of grid quantities (like masked ocean area) for later use in reporting diagnostics. More... | |
subroutine, public | write_ocean_geometry_file (G, param_file, directory, geom_file) |
Write out a file describing the topography, Coriolis parameter, grid locations and various other fixed fields from the grid. More... | |
subroutine, public mom_shared_initialization::apply_topography_edits_from_file | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(inout) | D, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file | ||
) |
Applies a list of topography overrides read from a netcdf file.
[in] | g | The dynamic horizontal grid type |
[in,out] | d | Ocean bottom depth in m |
[in] | param_file | Parameter file structure |
Definition at line 173 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
Referenced by initialize_topography_from_file().
subroutine, public mom_shared_initialization::compute_global_grid_integrals | ( | type(dyn_horgrid_type), intent(inout) | G | ) |
Pre-compute global integrals of grid quantities (like masked ocean area) for later use in reporting diagnostics.
[in,out] | g | The dynamic horizontal grid |
Definition at line 1044 of file MOM_shared_initialization.F90.
Referenced by mom_fixed_initialization::mom_initialize_fixed().
real function, public mom_shared_initialization::diagnosemaximumdepth | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(in) | D, |
type(dyn_horgrid_type), intent(in) | G | ||
) |
Return the global maximum ocean bottom depth in m.
[in] | g | The dynamic horizontal grid type |
[in] | d | Ocean bottom depth in m |
Definition at line 113 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::initialize_grid_rotation_angle | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(param_file_type), intent(in) | PF | ||
) |
initialize_grid_rotation_angle initializes the arrays with the sine and cosine of the angle between logical north on the grid and true north.
[in,out] | g | The dynamic horizontal grid |
[in] | pf | A structure indicating the open file to parse for model parameter values. |
Definition at line 524 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::initialize_topography_from_file | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(out) | D, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file | ||
) |
Read gridded depths from file.
[in] | g | The dynamic horizontal grid type |
[out] | d | Ocean bottom depth in m |
[in] | param_file | Parameter file structure |
Definition at line 131 of file MOM_shared_initialization.F90.
References apply_topography_edits_from_file(), mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
subroutine, public mom_shared_initialization::initialize_topography_named | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(out) | D, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file, | ||
character(len=*), intent(in) | topog_config, | ||
real, intent(in) | max_depth | ||
) |
initialize the bathymetry based on one of several named idealized configurations
[in] | g | The dynamic horizontal grid type |
[out] | d | Ocean bottom depth in m |
[in] | param_file | Parameter file structure |
[in] | topog_config | The name of an idealized topographic configuration |
[in] | max_depth | Maximum depth of model in m |
Definition at line 284 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
subroutine, public mom_shared_initialization::limit_topography | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(inout) | D, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file, | ||
real, intent(in) | max_depth | ||
) |
limit_topography ensures that min_depth < D(x,y) < max_depth
[in] | g | The dynamic horizontal grid type |
[in,out] | d | Ocean bottom depth in m |
[in] | param_file | Parameter file structure |
[in] | max_depth | Maximum depth of model in m |
Definition at line 400 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
subroutine, public mom_shared_initialization::mom_calculate_grad_coriolis | ( | real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(out) | dF_dx, |
real, dimension(g%isd:g%ied,g%jsd:g%jed), intent(out) | dF_dy, | ||
type(dyn_horgrid_type), intent(inout) | G | ||
) |
Calculates the components of grad f (Coriolis parameter)
[in,out] | g | The dynamic horizontal grid type |
[out] | df_dx | x-component of grad f |
[out] | df_dy | y-component of grad f |
Definition at line 84 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::mom_initialize_rotation | ( | real, dimension(g%isdb:g%iedb,g%jsdb:g%jedb), intent(out) | f, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | PF | ||
) |
MOM_initialize_rotation makes the appropriate call to set up the Coriolis parameter.
[in] | g | The dynamic horizontal grid type |
[out] | f | The Coriolis parameter in s-1 |
[in] | pf | Parameter file structure |
Definition at line 52 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), set_rotation_beta_plane(), and set_rotation_planetary().
subroutine, public mom_shared_initialization::mom_shared_init_init | ( | type(param_file_type), intent(in) | PF | ) |
MOM_shared_init_init just writes the code version.
[in] | pf | A structure indicating the open file to parse for model parameter values. |
Definition at line 37 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::read_face_length_list | ( | integer, intent(in) | iounit, |
character(len=*), intent(in) | filename, | ||
integer, intent(out) | num_lines, | ||
character(len=120), dimension(:), pointer | lines | ||
) |
Definition at line 950 of file MOM_shared_initialization.F90.
References mom_string_functions::uppercase().
Referenced by reset_face_lengths_list().
subroutine, public mom_shared_initialization::reset_face_lengths_file | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(param_file_type), intent(in) | param_file | ||
) |
[in,out] | g | The dynamic horizontal grid |
[in] | param_file | A structure to parse for run-time parameters |
Definition at line 675 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), and mom_domains::to_all.
subroutine, public mom_shared_initialization::reset_face_lengths_list | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(param_file_type), intent(in) | param_file | ||
) |
[in,out] | g | The dynamic horizontal grid |
[in] | param_file | A structure to parse for run-time parameters |
Definition at line 743 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), mom_error_handler::calltree_leave(), read_face_length_list(), and mom_string_functions::uppercase().
subroutine, public mom_shared_initialization::reset_face_lengths_named | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(param_file_type), intent(in) | param_file, | ||
character(len=*), intent(in) | name | ||
) |
[in,out] | g | The dynamic horizontal grid |
[in] | param_file | A structure to parse for run-time parameters |
Definition at line 550 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::set_rotation_beta_plane | ( | real, dimension(g%isdb:g%iedb,g%jsdb:g%jedb), intent(out) | f, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file | ||
) |
[in] | g | The dynamic horizontal grid |
[in] | param_file | A structure to parse for run-time parameters |
Definition at line 478 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
Referenced by mom_initialize_rotation().
subroutine, public mom_shared_initialization::set_rotation_planetary | ( | real, dimension(g%isdb:g%iedb,g%jsdb:g%jedb), intent(out) | f, |
type(dyn_horgrid_type), intent(in) | G, | ||
type(param_file_type), intent(in) | param_file | ||
) |
[in] | g | The dynamic horizontal grid |
[in] | param_file | A structure to parse for run-time parameters |
Definition at line 449 of file MOM_shared_initialization.F90.
References mom_error_handler::calltree_enter(), and mom_error_handler::calltree_leave().
Referenced by mom_initialize_rotation().
subroutine, public mom_shared_initialization::set_velocity_depth_max | ( | type(dyn_horgrid_type), intent(inout) | G | ) |
Set the bathymetry at velocity points to be the maximum of the depths at the neighoring tracer points.
[in,out] | g | The dynamic horizontal grid |
Definition at line 1004 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::set_velocity_depth_min | ( | type(dyn_horgrid_type), intent(inout) | G | ) |
Set the bathymetry at velocity points to be the minimum of the depths at the neighoring tracer points.
[in,out] | g | The dynamic horizontal grid |
Definition at line 1024 of file MOM_shared_initialization.F90.
subroutine, public mom_shared_initialization::write_ocean_geometry_file | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(param_file_type), intent(in) | param_file, | ||
character(len=*), intent(in) | directory, | ||
character(len=*), intent(in), optional | geom_file | ||
) |
Write out a file describing the topography, Coriolis parameter, grid locations and various other fixed fields from the grid.
[in,out] | g | The dynamic horizontal grid |
[in] | param_file | Parameter file structure |
[in] | directory | The directory into which to place the geometry file. |
[in] | geom_file | If present, the name of the geometry file (otherwise the file is "ocean_geometry") |
Definition at line 1069 of file MOM_shared_initialization.F90.
References mom_io::var_desc().
Referenced by mom_fixed_initialization::mom_initialize_fixed().