cpld_gridgen  1.7.0
 All Data Structures Files Functions Variables
grdvars Module Reference

Public Member Functions

subroutine allocate_all
 Allocate grid variables. More...
 

Data Fields

real(dbl_kind), dimension(:,:),
allocatable 
angle
 The rotation angle on Bu points. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
anglet
 The rotation angle on Ct points (opposite sense from angle) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
angq
 The grid rotation angle at the Bu (or corner) grid points of the super grid. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
areact
 The grid areas of the Ct grid cell in m2. More...
 
logical debug
 flag indicating whether grid information should be printed for debugging purposes Default is false More...
 
real(dbl_kind), dimension(:),
allocatable 
dlatbu
 The latitude spacing between Bu points at the grid bottom. More...
 
real(dbl_kind), dimension(:),
allocatable 
dlatcv
 The latitude spacing between Cv points at the grid bottom. More...
 
logical do_postwgts
 flag indicating whether then ESMF weights to regrid from the tripole grid to a rectilinear grid should be generated. More...
 
real(real_kind), dimension(:,:),
allocatable 
dp4
 The ocean depth from a MOM6 topog file, stored as real*4 (m) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
dp8
 The ocean depth from a MOM6 topog file, stored as real*8 (m) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
dx
 The grid cell width in meters of the supergrid in the x-direction (i-dimension) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
dy
 The grid cell width in meters of the supergrid in the y-direction (j-dimension) More...
 
logical editmask
 flag indicating whether the MOM6 land mask should be edited. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
hte
 The grid cell width in centimeters of the CICE6 grid in the y-direction (j-dimension) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
htn
 The grid cell width in centimeters of the CICE6 grid in the x-direction (i-dimension) More...
 
integer(int_kind), dimension(2) ipole
 the i-index for both pole locations along the top-most row More...
 
integer, dimension(nvivertbu
 The i-offsets of the Ct grid at each Bu(i,j) which determine the 4 vertices of each Bu grid point in i. More...
 
integer, dimension(nv), parameter ivertct = (/0, -1, -1, 0/)
 The i-offsets of the Bu grid at each Ct(i,j) which determine the 4 vertices of each Ct grid grid point in i. More...
 
integer, dimension(nvivertcu
 The i-offsets of the Cv grid at each Cu(i,j) which determine the 4 vertices of each Cu grid point in i. More...
 
integer, dimension(nvivertcv
 The i-offsets of the Cu grid at each Cv(i,j) which determine the 4 vertices of each Cv grid point in i. More...
 
integer, dimension(nvjvertbu
 The j-offsets of the Ct grid at each Bu(i,j) which determine the 4 vertices of each Bu grid point in j. More...
 
integer, dimension(nv), parameter jvertct = (/0, 0, -1, -1/)
 The j-offsets of the Bu grid at each Ct(i,j) which determine the 4 vertices of each Ct grid point in j. More...
 
integer, dimension(nvjvertcu
 The j-offsets of the Cv grid at each Cu(i,j) which determine the 4 vertices of each Cu grid point in j. More...
 
integer, dimension(nvjvertcv
 The j-offsets of the Cu grid at each Cv(i,j) which determine the 4 vertices of each Cv grid point in j. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
latbu
 The latitude of the corner points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
latbu_vert
 The latitudes of the 4 vertices of each Bu grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
latct
 The latitude of the center (tracer) grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
latct_vert
 The latitudes of the 4 vertices of each Ct grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
latcu
 The latitude of the u-velocity grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
latcu_vert
 The latitudes of the 4 vertices of each Cu grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
latcv
 The latitude of the v-velocity grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
latcv_vert
 The latitudes of the 4 vertices of each Cv grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
lonbu
 The longitude of the corner points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
lonbu_vert
 The longitudes of the 4 vertices of each Bu grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
lonct
 The longitude of the center (tracer) grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
lonct_vert
 The longitudes of the 4 vertices of each Ct grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
loncu
 The longitude of the u-velocity grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
loncu_vert
 The longitudes of the 4 vertices of each Cu grid point. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
loncv
 The longitude of the v-velocity grid points on the C-grid. More...
 
real(dbl_kind), dimension(:,:,:),
allocatable 
loncv_vert
 The longitudes of the 4 vertices of each Cv grid point. More...
 
real(kind=real_kind), parameter masking_depth = 0.0
 The masking depth for MOM6. More...
 
logical mastertask
 flag indicating whether this is the mastertask More...
 
real(kind=real_kind), parameter maximum_depth = 6500.0
 The maximum depth for MOM6. More...
 
real(kind=real_kind), parameter maximum_lat = 88.0
 The maximum latitude for water points for WW3. More...
 
real(kind=real_kind), parameter minimum_depth = 9.5
 The minimum depth for MOM6. More...
 
integer, parameter ncoord = 2*4.
 the number of coord pairs (lat,lon) for each of 4 stagger locations More...
 
integer ni
 i-dimension of output grid More...
 
integer nj
 j-dimension of output grid More...
 
integer npx
 i or j-dimension of fv3 tile More...
 
integer, parameter nv = 4.
 the number of vertices for each stagger location More...
 
integer, parameter nvars = ncoord + nverts
 the total number of cooridinate variables More...
 
integer, parameter nverts = 2*4.
 the number of coord pairs (lat,lon) for the vertices of each stagger location More...
 
integer nx
 i-dimension of MOM6 supergrid More...
 
integer ny
 j-dimension of MOM6 supergrid More...
 
real(dbl_kind) sg_maxlat
 the maximum latitute present in the supergrid file More...
 
real(dbl_kind), dimension(:,:),
allocatable 
ulat
 The latitude points (on the Bu grid) for CICE6 (radians) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
ulon
 The longitude points (on the Bu grid) for CICE6 (radians) More...
 
real(real_kind), dimension(:,:),
allocatable 
wet4
 The ocean mask from a MOM6 mask file, stored as real*4 (nd) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
wet8
 The ocean mask from a MOM6 mask file, stored as real*8 (nd) More...
 
real(dbl_kind), dimension(:,:),
allocatable 
x
 The longitudes of the MOM6 supergrid. More...
 
real(dbl_kind), dimension(:),
allocatable 
xlatct
 The latitude of the Ct grid points on the opposite side of the tripole seam. More...
 
real(dbl_kind), dimension(:),
allocatable 
xlatcu
 The latitude of the Cu grid points on the opposite side of the tripole seam. More...
 
real(dbl_kind), dimension(:),
allocatable 
xlonct
 The longitude of the Ct grid points on the opposite side of the tripole seam. More...
 
real(dbl_kind), dimension(:),
allocatable 
xloncu
 The longitude of the Cu grid points on the opposite side of the tripole seam. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
xsgp1
 The longitudes of the super-grid replicated across the tripole seam. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
y
 The latitudes of the MOM6 supergrid. More...
 
real(dbl_kind), dimension(:,:),
allocatable 
ysgp1
 The latitudes of the super-grid replicated across the tripole seam. More...
 

Detailed Description

Definition at line 8 of file grdvars.F90.

Member Function/Subroutine Documentation

subroutine grdvars::allocate_all ( )

Allocate grid variables.

Author
Denise Worthen

Definition at line 173 of file grdvars.F90.

Referenced by gen_fixgrid().

Field Documentation

real(dbl_kind), dimension(:,:), allocatable grdvars::angle

The rotation angle on Bu points.

Definition at line 105 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::anglet

The rotation angle on Ct points (opposite sense from angle)

Definition at line 103 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::angq

The grid rotation angle at the Bu (or corner) grid points of the super grid.

Definition at line 71 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::areact

The grid areas of the Ct grid cell in m2.

Definition at line 102 of file grdvars.F90.

logical grdvars::debug

flag indicating whether grid information should be printed for debugging purposes Default is false

Definition at line 23 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::dlatbu

The latitude spacing between Bu points at the grid bottom.

Definition at line 136 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::dlatcv

The latitude spacing between Cv points at the grid bottom.

Definition at line 138 of file grdvars.F90.

logical grdvars::do_postwgts

flag indicating whether then ESMF weights to regrid from the tripole grid to a rectilinear grid should be generated.

Default is false.

Definition at line 26 of file grdvars.F90.

real(real_kind), dimension(:,:), allocatable grdvars::dp4

The ocean depth from a MOM6 topog file, stored as real*4 (m)

Definition at line 146 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::dp8

The ocean depth from a MOM6 topog file, stored as real*8 (m)

Definition at line 148 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::dx

The grid cell width in meters of the supergrid in the x-direction (i-dimension)

Definition at line 74 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::dy

The grid cell width in meters of the supergrid in the y-direction (j-dimension)

Definition at line 76 of file grdvars.F90.

logical grdvars::editmask

flag indicating whether the MOM6 land mask should be edited.

Default is false

Definition at line 21 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::hte

The grid cell width in centimeters of the CICE6 grid in the y-direction (j-dimension)

Definition at line 158 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::htn

The grid cell width in centimeters of the CICE6 grid in the x-direction (i-dimension)

Definition at line 156 of file grdvars.F90.

integer(int_kind), dimension(2) grdvars::ipole

the i-index for both pole locations along the top-most row

Definition at line 41 of file grdvars.F90.

integer, dimension(nv) grdvars::ivertbu

The i-offsets of the Ct grid at each Bu(i,j) which determine the 4 vertices of each Bu grid point in i.

Definition at line 62 of file grdvars.F90.

integer, dimension(nv), parameter grdvars::ivertct = (/0, -1, -1, 0/)

The i-offsets of the Bu grid at each Ct(i,j) which determine the 4 vertices of each Ct grid grid point in i.

Definition at line 44 of file grdvars.F90.

integer, dimension(nv) grdvars::ivertcu

The i-offsets of the Cv grid at each Cu(i,j) which determine the 4 vertices of each Cu grid point in i.

Definition at line 56 of file grdvars.F90.

integer, dimension(nv) grdvars::ivertcv

The i-offsets of the Cu grid at each Cv(i,j) which determine the 4 vertices of each Cv grid point in i.

Definition at line 50 of file grdvars.F90.

integer, dimension(nv) grdvars::jvertbu

The j-offsets of the Ct grid at each Bu(i,j) which determine the 4 vertices of each Bu grid point in j.

Definition at line 65 of file grdvars.F90.

integer, dimension(nv), parameter grdvars::jvertct = (/0, 0, -1, -1/)

The j-offsets of the Bu grid at each Ct(i,j) which determine the 4 vertices of each Ct grid point in j.

Definition at line 47 of file grdvars.F90.

integer, dimension(nv) grdvars::jvertcu

The j-offsets of the Cv grid at each Cu(i,j) which determine the 4 vertices of each Cu grid point in j.

Definition at line 59 of file grdvars.F90.

integer, dimension(nv) grdvars::jvertcv

The j-offsets of the Cu grid at each Cv(i,j) which determine the 4 vertices of each Cv grid point in j.

Definition at line 53 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::latbu

The latitude of the corner points on the C-grid.

These are equivalent to u,v velocity grid points on the B-grid

Definition at line 96 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::latbu_vert

The latitudes of the 4 vertices of each Bu grid point.

Definition at line 122 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::latct

The latitude of the center (tracer) grid points on the C-grid.

Definition at line 84 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::latct_vert

The latitudes of the 4 vertices of each Ct grid point.

Definition at line 107 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::latcu

The latitude of the u-velocity grid points on the C-grid.

Definition at line 92 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::latcu_vert

The latitudes of the 4 vertices of each Cu grid point.

Definition at line 117 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::latcv

The latitude of the v-velocity grid points on the C-grid.

Definition at line 88 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::latcv_vert

The latitudes of the 4 vertices of each Cv grid point.

Definition at line 112 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::lonbu

The longitude of the corner points on the C-grid.

These are equivalent to u,v velocity grid points on the B-grid

Definition at line 99 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::lonbu_vert

The longitudes of the 4 vertices of each Bu grid point.

Definition at line 124 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::lonct

The longitude of the center (tracer) grid points on the C-grid.

Definition at line 86 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::lonct_vert

The longitudes of the 4 vertices of each Ct grid point.

Definition at line 109 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::loncu

The longitude of the u-velocity grid points on the C-grid.

Definition at line 94 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::loncu_vert

The longitudes of the 4 vertices of each Cu grid point.

Definition at line 119 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::loncv

The longitude of the v-velocity grid points on the C-grid.

Definition at line 90 of file grdvars.F90.

real(dbl_kind), dimension(:,:,:), allocatable grdvars::loncv_vert

The longitudes of the 4 vertices of each Cv grid point.

Definition at line 114 of file grdvars.F90.

real(kind=real_kind), parameter grdvars::masking_depth = 0.0

The masking depth for MOM6.

Depths shallower than minimum_depth but deeper than masking_depth are rounded to minimum_depth

Definition at line 163 of file grdvars.F90.

logical grdvars::mastertask

flag indicating whether this is the mastertask

Definition at line 29 of file grdvars.F90.

real(kind=real_kind), parameter grdvars::maximum_depth = 6500.0

The maximum depth for MOM6.

Definition at line 162 of file grdvars.F90.

real(kind=real_kind), parameter grdvars::maximum_lat = 88.0

The maximum latitude for water points for WW3.

Definition at line 166 of file grdvars.F90.

real(kind=real_kind), parameter grdvars::minimum_depth = 9.5

The minimum depth for MOM6.

Definition at line 161 of file grdvars.F90.

integer, parameter grdvars::ncoord = 2*4.

the number of coord pairs (lat,lon) for each of 4 stagger locations

Definition at line 32 of file grdvars.F90.

integer grdvars::ni

i-dimension of output grid

Definition at line 14 of file grdvars.F90.

integer grdvars::nj

j-dimension of output grid

Definition at line 15 of file grdvars.F90.

integer grdvars::npx

i or j-dimension of fv3 tile

Definition at line 16 of file grdvars.F90.

integer, parameter grdvars::nv = 4.

the number of vertices for each stagger location

Definition at line 31 of file grdvars.F90.

integer, parameter grdvars::nvars = ncoord + nverts

the total number of cooridinate variables

Definition at line 36 of file grdvars.F90.

integer, parameter grdvars::nverts = 2*4.

the number of coord pairs (lat,lon) for the vertices of each stagger location

Definition at line 34 of file grdvars.F90.

integer grdvars::nx

i-dimension of MOM6 supergrid

Definition at line 18 of file grdvars.F90.

integer grdvars::ny

j-dimension of MOM6 supergrid

Definition at line 19 of file grdvars.F90.

real(dbl_kind) grdvars::sg_maxlat

the maximum latitute present in the supergrid file

Definition at line 39 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::ulat

The latitude points (on the Bu grid) for CICE6 (radians)

Definition at line 154 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::ulon

The longitude points (on the Bu grid) for CICE6 (radians)

Definition at line 152 of file grdvars.F90.

real(real_kind), dimension(:,:), allocatable grdvars::wet4

The ocean mask from a MOM6 mask file, stored as real*4 (nd)

Definition at line 141 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::wet8

The ocean mask from a MOM6 mask file, stored as real*8 (nd)

Definition at line 143 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::x

The longitudes of the MOM6 supergrid.

Definition at line 69 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::xlatct

The latitude of the Ct grid points on the opposite side of the tripole seam.

Definition at line 130 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::xlatcu

The latitude of the Cu grid points on the opposite side of the tripole seam.

Definition at line 134 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::xlonct

The longitude of the Ct grid points on the opposite side of the tripole seam.

Definition at line 128 of file grdvars.F90.

real(dbl_kind), dimension(:), allocatable grdvars::xloncu

The longitude of the Cu grid points on the opposite side of the tripole seam.

Definition at line 132 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::xsgp1

The longitudes of the super-grid replicated across the tripole seam.

Definition at line 78 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::y

The latitudes of the MOM6 supergrid.

Definition at line 70 of file grdvars.F90.

real(dbl_kind), dimension(:,:), allocatable grdvars::ysgp1

The latitudes of the super-grid replicated across the tripole seam.

Definition at line 80 of file grdvars.F90.


The documentation for this module was generated from the following file: