MOM6
mom_checksums::hchksum_pair Interface Reference

Detailed Description

Definition at line 36 of file MOM_checksums.F90.

Private functions

subroutine chksum_pair_h_2d (mesg, arrayA, arrayB, HI, haloshift, omit_corners, scale)
 
subroutine chksum_pair_h_3d (mesg, arrayA, arrayB, HI, haloshift, omit_corners, scale)
 

Functions and subroutines

◆ chksum_pair_h_2d()

subroutine mom_checksums::hchksum_pair::chksum_pair_h_2d ( character(len=*), intent(in)  mesg,
real, dimension(hi%isd:,hi%jsd:), intent(in)  arrayA,
real, dimension(hi%isd:,hi%jsd:), intent(in)  arrayB,
type(hor_index_type), intent(in)  HI,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  omit_corners,
real, intent(in), optional  scale 
)
private
Parameters
[in]mesgIdentifying messages
[in]hiA horizontal index type
[in]arraybThe arrays to be checksummed
[in]haloshiftThe width of halos to check (default 0)
[in]omit_cornersIf true, avoid checking diagonal shifts
[in]scaleA scaling factor for this array.

Definition at line 92 of file MOM_checksums.F90.

92  character(len=*), intent(in) :: mesg !< Identifying messages
93  type(hor_index_type), intent(in) :: hi !< A horizontal index type
94  real, dimension(HI%isd:,HI%jsd:), intent(in) :: arraya, arrayb !< The arrays to be checksummed
95  integer, optional, intent(in) :: haloshift !< The width of halos to check (default 0)
96  logical, optional, intent(in) :: omit_corners !< If true, avoid checking diagonal shifts
97  real, optional, intent(in) :: scale !< A scaling factor for this array.
98 
99  if (present(haloshift)) then
100  call chksum_h_2d(arraya, 'x '//mesg, hi, haloshift, omit_corners, scale=scale)
101  call chksum_h_2d(arrayb, 'y '//mesg, hi, haloshift, omit_corners, scale=scale)
102  else
103  call chksum_h_2d(arraya, 'x '//mesg, hi, scale=scale)
104  call chksum_h_2d(arrayb, 'y '//mesg, hi, scale=scale)
105  endif
106 

◆ chksum_pair_h_3d()

subroutine mom_checksums::hchksum_pair::chksum_pair_h_3d ( character(len=*), intent(in)  mesg,
real, dimension(hi%isd:,hi%jsd:, :), intent(in)  arrayA,
real, dimension(hi%isd:,hi%jsd:, :), intent(in)  arrayB,
type(hor_index_type), intent(in)  HI,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  omit_corners,
real, intent(in), optional  scale 
)
private
Parameters
[in]mesgIdentifying messages
[in]hiA horizontal index type
[in]arraybThe arrays to be checksummed
[in]haloshiftThe width of halos to check (default 0)
[in]omit_cornersIf true, avoid checking diagonal shifts
[in]scaleA scaling factor for this array.

Definition at line 110 of file MOM_checksums.F90.

110  character(len=*), intent(in) :: mesg !< Identifying messages
111  type(hor_index_type), intent(in) :: hi !< A horizontal index type
112  real, dimension(HI%isd:,HI%jsd:, :), intent(in) :: arraya, arrayb !< The arrays to be checksummed
113  integer, optional, intent(in) :: haloshift !< The width of halos to check (default 0)
114  logical, optional, intent(in) :: omit_corners !< If true, avoid checking diagonal shifts
115  real, optional, intent(in) :: scale !< A scaling factor for this array.
116 
117  if (present(haloshift)) then
118  call chksum_h_3d(arraya, 'x '//mesg, hi, haloshift, omit_corners, scale=scale)
119  call chksum_h_3d(arrayb, 'y '//mesg, hi, haloshift, omit_corners, scale=scale)
120  else
121  call chksum_h_3d(arraya, 'x '//mesg, hi, scale=scale)
122  call chksum_h_3d(arrayb, 'y '//mesg, hi, scale=scale)
123  endif
124 

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