MOM6
mom_checksum_packages::mom_state_chksum Interface Reference

Detailed Description

Definition at line 38 of file MOM_checksum_packages.F90.

Private functions

subroutine mom_state_chksum_5arg (mesg, u, v, h, uh, vh, G, GV, haloshift, symmetric)
 
subroutine mom_state_chksum_3arg (mesg, u, v, h, G, GV, haloshift, symmetric)
 

Functions and subroutines

◆ mom_state_chksum_3arg()

subroutine mom_checksum_packages::mom_state_chksum::mom_state_chksum_3arg ( character(len=*), intent(in)  mesg,
real, dimension(szib_(g),szj_(g),szk_(g)), intent(in)  u,
real, dimension(szi_(g),szjb_(g),szk_(g)), intent(in)  v,
real, dimension(szi_(g),szj_(g),szk_(g)), intent(in)  h,
type(ocean_grid_type), intent(in)  G,
type(verticalgrid_type), intent(in)  GV,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  symmetric 
)
private
Parameters
[in]mesgA message that appears on the chksum lines.
[in]gThe ocean's grid structure.
[in]gvThe ocean's vertical grid structure.
[in]uZonal velocity, in m s-1.
[in]vMeridional velocity, in m s-1.
[in]hLayer thicknesses, in H (usually m or kg m-2).

Definition at line 99 of file MOM_checksum_packages.F90.

99  character(len=*), intent(in) :: mesg !< A message that appears on the chksum lines.
100  type(ocean_grid_type), intent(in) :: g !< The ocean's grid structure.
101  type(verticalgrid_type), intent(in) :: gv !< The ocean's vertical grid structure.
102  real, dimension(SZIB_(G),SZJ_(G),SZK_(G)), &
103  intent(in) :: u !< Zonal velocity, in m s-1.
104  real, dimension(SZI_(G),SZJB_(G),SZK_(G)), &
105  intent(in) :: v !< Meridional velocity, in m s-1.
106  real, dimension(SZI_(G),SZJ_(G),SZK_(G)), &
107  intent(in) :: h !< Layer thicknesses, in H (usually m or kg m-2).
108  integer, optional, intent(in) :: haloshift
109  logical, optional, intent(in) :: symmetric
110 ! This subroutine writes out chksums for the model's basic state variables.
111 ! Arguments: mesg - A message that appears on the chksum lines.
112 ! (in) u - Zonal velocity, in m s-1.
113 ! (in) v - Meridional velocity, in m s-1.
114 ! (in) h - Layer thickness, in m.
115 ! (in) uh - Volume flux through zonal faces = u*h*dy, m3 s-1.
116 ! (in) vh - Volume flux through meridional faces = v*h*dx, in m3 s-1.
117 ! (in) G - The ocean's grid structure.
118 ! (in) GV - The ocean's vertical grid structure.
119  integer :: is, ie, js, je, nz, hs
120  logical :: sym
121  is = g%isc ; ie = g%iec ; js = g%jsc ; je = g%jec ; nz = g%ke
122 
123  ! Note that for the chksum calls to be useful for reproducing across PE
124  ! counts, there must be no redundant points, so all variables use is..ie
125  ! and js...je as their extent.
126  hs=1; if (present(haloshift)) hs=haloshift
127  sym=.false.; if (present(symmetric)) sym=symmetric
128  call uvchksum(mesg//" u", u, v, g%HI,haloshift=hs, symmetric=sym)
129  call hchksum(h, mesg//" h",g%HI, haloshift=hs, scale=gv%H_to_m)

◆ mom_state_chksum_5arg()

subroutine mom_checksum_packages::mom_state_chksum::mom_state_chksum_5arg ( character(len=*), intent(in)  mesg,
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in)  u,
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in)  v,
real, dimension( g %isd: g %ied, g %jsd: g %jed, g %ke), intent(in)  h,
real, dimension( g %isdb: g %iedb, g %jsd: g %jed, g %ke), intent(in)  uh,
real, dimension( g %isd: g %ied, g %jsdb: g %jedb, g %ke), intent(in)  vh,
type(ocean_grid_type), intent(in)  G,
type(verticalgrid_type), intent(in)  GV,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  symmetric 
)
private
Parameters
[in]mesgA message that appears on the chksum lines.
[in]gThe ocean's grid structure.
[in]gvThe ocean's vertical grid structure.
[in]uThe zonal velocity, in m s-1.
[in]vThe meridional velocity, in m s-1.
[in]hLayer thicknesses, in H (usually m or kg m-2).
[in]uhVolume flux through zonal faces = u*h*dy, m3 s-1.
[in]vhVolume flux through meridional

Definition at line 55 of file MOM_checksum_packages.F90.

55  character(len=*), &
56  intent(in) :: mesg !< A message that appears on the chksum lines.
57  type(ocean_grid_type), intent(in) :: g !< The ocean's grid structure.
58  type(verticalgrid_type), intent(in) :: gv !< The ocean's vertical grid structure.
59  real, dimension(SZIB_(G),SZJ_(G),SZK_(G)), &
60  intent(in) :: u !< The zonal velocity, in m s-1.
61  real, dimension(SZI_(G),SZJB_(G),SZK_(G)), &
62  intent(in) :: v !< The meridional velocity, in m s-1.
63  real, dimension(SZI_(G),SZJ_(G),SZK_(G)), &
64  intent(in) :: h !< Layer thicknesses, in H (usually m or kg m-2).
65  real, dimension(SZIB_(G),SZJ_(G),SZK_(G)), &
66  intent(in) :: uh !< Volume flux through zonal faces = u*h*dy, m3 s-1.
67  real, dimension(SZI_(G),SZJB_(G),SZK_(G)), &
68  intent(in) :: vh !< Volume flux through meridional
69  !! faces = v*h*dx, in m3 s-1.
70  integer, optional, intent(in) :: haloshift
71  logical, optional, intent(in) :: symmetric
72 ! This subroutine writes out chksums for the model's basic state variables.
73 ! Arguments: mesg - A message that appears on the chksum lines.
74 ! (in) u - Zonal velocity, in m s-1.
75 ! (in) v - Meridional velocity, in m s-1.
76 ! (in) h - Layer thickness, in m.
77 ! (in) uh - Volume flux through zonal faces = u*h*dy, m3 s-1.
78 ! (in) vh - Volume flux through meridional faces = v*h*dx, in m3 s-1.
79 ! (in) G - The ocean's grid structure.
80 ! (in) GV - The ocean's vertical grid structure.
81  integer :: is, ie, js, je, nz, hs
82  logical :: sym
83  is = g%isc ; ie = g%iec ; js = g%jsc ; je = g%jec ; nz = g%ke
84 
85  ! Note that for the chksum calls to be useful for reproducing across PE
86  ! counts, there must be no redundant points, so all variables use is..ie
87  ! and js...je as their extent.
88  hs=1; if (present(haloshift)) hs=haloshift
89  sym=.false.; if (present(symmetric)) sym=symmetric
90  call uvchksum(mesg//" [uv]", u, v, g%HI, haloshift=hs, symmetric=sym)
91  call hchksum(h, mesg//" h", g%HI, haloshift=hs, scale=gv%H_to_m)
92  call uvchksum(mesg//" [uv]h", uh, vh, g%HI, haloshift=hs, &
93  symmetric=sym, scale=gv%H_to_m)

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