cpld_gridgen  1.13.0
All Data Structures Files Functions Variables Pages
vertices.F90 File Reference

Fill the vertices for any stagger location. More...

Go to the source code of this file.

Functions/Subroutines

subroutine vertices::fill_bottom (iVert, jVert, lat, lon, latvert, lonvert, dlat)
 Fill the vertices for a stagger location along the bottom j-row. More...
 
subroutine vertices::fill_top (iVert, jVert, lat, lon, latvert, lonvert, xlat, xlon)
 Fill the vertices for a stagger location along the top j-row. More...
 
subroutine vertices::fill_vertices (jbeg, jend, iVert, jVert, lat, lon, latvert, lonvert)
 Fill the vertices for any stagger location between bounding j-rows. More...
 

Detailed Description

Fill the vertices for any stagger location.

Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

This module fills the vertices for any stagger location. The i,j indices of the source lat and lon arrays are modified by the vertex offsets to give the latitudes and longitues of each vertex for the desired stagger lcation. The routine fill_vertices will fill the vertex values of all non-boundary rows for any stagger locations. For the Ct and Cu grids, the fill_bottom routine fills the bottom most vertex values. For the Cv and Bu grids, the routine fill_top fills the topmost vertex values using the values from across the tripole seam.

Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition in file vertices.F90.

Function/Subroutine Documentation

◆ fill_bottom()

subroutine vertices::fill_bottom ( integer, dimension(nv), intent(in)  iVert,
integer, dimension(nv), intent(in)  jVert,
real(dbl_kind), dimension(ni,nj), intent(in)  lat,
real(dbl_kind), dimension(ni,nj), intent(in)  lon,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  latvert,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  lonvert,
real(dbl_kind), dimension(ni), intent(in)  dlat 
)

Fill the vertices for a stagger location along the bottom j-row.

Parameters
[in]iVertthe i-offset applied to the i-index of a stagger grid
[in]jVertthe j-offset applied to the j-index of a stagger grid
[in]latthe latitudes of the stagger grid which define each vertex
[in]lonthe longitudes of the stagger grid which define each vertex
[in]dlatthe approximate latitude along the bottom-most row
[out]latvertthe latitudes of each vertex
[out]lonvertthe longitudes of each vertex
Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition at line 69 of file vertices.F90.

◆ fill_top()

subroutine vertices::fill_top ( integer, dimension(nv), intent(in)  iVert,
integer, dimension(nv), intent(in)  jVert,
real(dbl_kind), dimension(ni,nj), intent(in)  lat,
real(dbl_kind), dimension(ni,nj), intent(in)  lon,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  latvert,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  lonvert,
real(dbl_kind), dimension(ni), intent(in)  xlat,
real(dbl_kind), dimension(ni), intent(in)  xlon 
)

Fill the vertices for a stagger location along the top j-row.

Parameters
[in]iVertthe i-offset applied to the i-index of a stagger grid
[in]jVertthe j-offset applied to the j-index of a stagger grid
[in]latthe latitudes of the stagger grid which define each vertex
[in]lonthe longitudes of the stagger grid which define each vertex
[in]xlatthe latitude across the tripole seam
[in]xlonthe longitude across the tripole seam
[out]latvertthe latitudes of each vertex
[out]lonvertthe longitudes of each vertex
Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition at line 115 of file vertices.F90.

◆ fill_vertices()

subroutine vertices::fill_vertices ( integer, intent(in)  jbeg,
integer, intent(in)  jend,
integer, dimension(nv), intent(in)  iVert,
integer, dimension(nv), intent(in)  jVert,
real(dbl_kind), dimension(ni,nj), intent(in)  lat,
real(dbl_kind), dimension(ni,nj), intent(in)  lon,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  latvert,
real(dbl_kind), dimension(ni,nj,nv), intent(out)  lonvert 
)

Fill the vertices for any stagger location between bounding j-rows.

Parameters
[in]jbegthe beginning row
[in]jendthe ending row
[in]iVertthe i-offset applied to the i-index of a stagger grid
[in]jVertthe j-offset applied to the j-index of a stagger grid
[in]latthe latitudes of the stagger grid which define each vertex
[in]lonthe longitudes of the stagger grid which define each vertex
[out]latvertthe latitudes of each vertex
[out]lonvertthe longitudes of each vertex
Author
Denis.nosp@m.e.Wo.nosp@m.rthen.nosp@m.@noa.nosp@m.a.gov

Definition at line 34 of file vertices.F90.