MOM6
|
Contains a shareable dynamic type for describing horizontal grids and metric data and utilty routines that work on this type.
Data Types | |
type | dyn_horgrid_type |
Describes the horizontal ocean grid with only dynamic memory arrays. More... | |
Functions/Subroutines | |
subroutine, public | create_dyn_horgrid (G, HI, bathymetry_at_vel) |
Allocate memory used by the dyn_horgrid_type and related structures. More... | |
subroutine, public | rescale_dyn_horgrid_bathymetry (G, m_in_new_units) |
rescale_dyn_horgrid_bathymetry permits a change in the internal units for the bathymetry on the grid, both rescaling the depths and recording the new internal depth units. More... | |
subroutine, public | set_derived_dyn_horgrid (G, US) |
set_derived_dyn_horgrid calculates metric terms that are derived from other metrics. More... | |
real function | adcroft_reciprocal (val) |
Adcroft_reciprocal(x) = 1/x for |x|>0 or 0 for x=0. More... | |
subroutine, public | destroy_dyn_horgrid (G) |
Release memory used by the dyn_horgrid_type and related structures. More... | |
|
private |
Adcroft_reciprocal(x) = 1/x for |x|>0 or 0 for x=0.
[in] | val | The value being inverted. |
Definition at line 368 of file MOM_dyn_horgrid.F90.
Referenced by set_derived_dyn_horgrid().
subroutine, public mom_dyn_horgrid::create_dyn_horgrid | ( | type(dyn_horgrid_type), pointer | G, |
type(hor_index_type), intent(in) | HI, | ||
logical, intent(in), optional | bathymetry_at_vel | ||
) |
Allocate memory used by the dyn_horgrid_type and related structures.
g | A pointer to the dynamic horizontal grid type | |
[in] | hi | A hor_index_type for array extents |
[in] | bathymetry_at_vel | If true, there are separate values for the basin depths at velocity points. Otherwise the effects of topography are entirely determined from thickness points. |
Definition at line 176 of file MOM_dyn_horgrid.F90.
References mom_error_handler::mom_error().
Referenced by mom_oda_driver_mod::init_oda(), and mom::initialize_mom().
subroutine, public mom_dyn_horgrid::destroy_dyn_horgrid | ( | type(dyn_horgrid_type), pointer | G | ) |
Release memory used by the dyn_horgrid_type and related structures.
g | The dynamic horizontal grid type |
Definition at line 377 of file MOM_dyn_horgrid.F90.
References mom_error_handler::mom_error().
Referenced by mom::initialize_mom().
subroutine, public mom_dyn_horgrid::rescale_dyn_horgrid_bathymetry | ( | type(dyn_horgrid_type), intent(inout) | G, |
real, intent(in) | m_in_new_units | ||
) |
rescale_dyn_horgrid_bathymetry permits a change in the internal units for the bathymetry on the grid, both rescaling the depths and recording the new internal depth units.
[in,out] | g | The dynamic horizontal grid type |
[in] | m_in_new_units | The new internal representation of 1 m depth. |
Definition at line 285 of file MOM_dyn_horgrid.F90.
References mom_error_handler::mom_error().
Referenced by mom_ice_shelf::initialize_ice_shelf().
subroutine, public mom_dyn_horgrid::set_derived_dyn_horgrid | ( | type(dyn_horgrid_type), intent(inout) | G, |
type(unit_scale_type), intent(in), optional | US | ||
) |
set_derived_dyn_horgrid calculates metric terms that are derived from other metrics.
[in,out] | g | The dynamic horizontal grid type |
[in] | us | A dimensional unit scaling type |
Definition at line 317 of file MOM_dyn_horgrid.F90.
References adcroft_reciprocal().
Referenced by mom_transcribe_grid::copy_mom_grid_to_dyngrid(), and mom_grid_initialize::set_grid_metrics().