MOM6
MOM_grid_initialize.F90 File Reference

Go to the source code of this file.

Data Types

type  mom_grid_initialize::gps
 Global positioning system (aka container for information to describe the grid) More...
 

Modules

module  mom_grid_initialize
 Initializes horizontal grid.
 

Functions/Subroutines

subroutine, public mom_grid_initialize::set_grid_metrics (G, param_file, US)
 set_grid_metrics is used to set the primary values in the model's horizontal grid. The bathymetry, land-sea mask and any restricted channel widths are not known yet, so these are set later. More...
 
subroutine mom_grid_initialize::grid_metrics_chksum (parent, G, US)
 grid_metrics_chksum performs a set of checksums on metrics on the grid for debugging. More...
 
subroutine mom_grid_initialize::set_grid_metrics_from_mosaic (G, param_file, US)
 Sets the grid metrics from a mosaic file. More...
 
subroutine mom_grid_initialize::set_grid_metrics_cartesian (G, param_file, US)
 Calculate the values of the metric terms for a Cartesian grid that might be used and save them in arrays. More...
 
subroutine mom_grid_initialize::set_grid_metrics_spherical (G, param_file, US)
 Calculate the values of the metric terms that might be used and save them in arrays. More...
 
subroutine mom_grid_initialize::set_grid_metrics_mercator (G, param_file, US)
 Calculate the values of the metric terms that might be used and save them in arrays. More...
 
real function mom_grid_initialize::ds_di (x, y, GP)
 This function returns the grid spacing in the logical x direction. More...
 
real function mom_grid_initialize::ds_dj (x, y, GP)
 This function returns the grid spacing in the logical y direction. More...
 
real function mom_grid_initialize::dl (x1, x2, y1, y2)
 This function returns the contribution from the line integral along one of the four sides of a cell face to the area of a cell, assuming that the sides follow a linear path in latitude and longitude (i.e., on a Mercator grid). More...
 
real function mom_grid_initialize::find_root (fn, dy_df, GP, fnval, y1, ymin, ymax, ittmax)
 This subroutine finds and returns the value of y at which the monotonically increasing function fn takes the value fnval, also returning in ittmax the number of iterations of Newton's method that were used to polish the root. More...
 
real function mom_grid_initialize::dx_di (x, GP)
 This function calculates and returns the value of dx/di, where x is the longitude in Radians, and i is the integral north-south grid index. More...
 
real function mom_grid_initialize::int_di_dx (x, GP)
 This function calculates and returns the integral of the inverse of dx/di to the point x, in radians. More...
 
real function mom_grid_initialize::dy_dj (y, GP)
 This subroutine calculates and returns the value of dy/dj, where y is the latitude in Radians, and j is the integral north-south grid index. More...
 
real function mom_grid_initialize::int_dj_dy (y, GP)
 This subroutine calculates and returns the integral of the inverse of dy/dj to the point y, in radians. More...
 
subroutine mom_grid_initialize::extrapolate_metric (var, jh, missing)
 Extrapolates missing metric data into all the halo regions. More...
 
real function, public mom_grid_initialize::adcroft_reciprocal (val)
 This function implements Adcroft's rule for reciprocals, namely that Adcroft_Inv(x) = 1/x for |x|>0 or 0 for x=0. More...
 
subroutine, public mom_grid_initialize::initialize_masks (G, PF, US)
 Initializes the grid masks and any metrics that come with masks already applied. More...