MOM6
mom_checksums::uvchksum Interface Reference

Detailed Description

Definition at line 40 of file MOM_checksums.F90.

Private functions

subroutine chksum_uv_2d (mesg, arrayU, arrayV, HI, haloshift, symmetric, omit_corners, scale)
 
subroutine chksum_uv_3d (mesg, arrayU, arrayV, HI, haloshift, symmetric, omit_corners, scale)
 

Functions and subroutines

◆ chksum_uv_2d()

subroutine mom_checksums::uvchksum::chksum_uv_2d ( character(len=*), intent(in)  mesg,
real, dimension(hi%isdb:,hi%jsd:), intent(in)  arrayU,
real, dimension(hi%isd:,hi%jsdb:), intent(in)  arrayV,
type(hor_index_type), intent(in)  HI,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  symmetric,
logical, intent(in), optional  omit_corners,
real, intent(in), optional  scale 
)
private
Parameters
[in]mesgIdentifying messages
[in]hiA horizontal index type
[in]arrayuThe u-component array to be checksummed
[in]arrayvThe v-component array to be checksummed
[in]haloshiftThe width of halos to check (default 0)
[in]symmetricIf true, do the checksums on the full symmetric computational domain.
[in]omit_cornersIf true, avoid checking diagonal shifts
[in]scaleA scaling factor for these arrays.

Definition at line 409 of file MOM_checksums.F90.

409  character(len=*), intent(in) :: mesg !< Identifying messages
410  type(hor_index_type), intent(in) :: hi !< A horizontal index type
411  real, dimension(HI%IsdB:,HI%jsd:), intent(in) :: arrayu !< The u-component array to be checksummed
412  real, dimension(HI%isd:,HI%JsdB:), intent(in) :: arrayv !< The v-component array to be checksummed
413  integer, optional, intent(in) :: haloshift !< The width of halos to check (default 0)
414  logical, optional, intent(in) :: symmetric !< If true, do the checksums on the full symmetric computational domain.
415  logical, optional, intent(in) :: omit_corners !< If true, avoid checking diagonal shifts
416  real, optional, intent(in) :: scale !< A scaling factor for these arrays.
417 
418  if (present(haloshift)) then
419  call chksum_u_2d(arrayu, 'u '//mesg, hi, haloshift, symmetric, omit_corners, scale)
420  call chksum_v_2d(arrayv, 'v '//mesg, hi, haloshift, symmetric, omit_corners, scale)
421  else
422  call chksum_u_2d(arrayu, 'u '//mesg, hi, symmetric=symmetric)
423  call chksum_v_2d(arrayv, 'v '//mesg, hi, symmetric=symmetric)
424  endif
425 

◆ chksum_uv_3d()

subroutine mom_checksums::uvchksum::chksum_uv_3d ( character(len=*), intent(in)  mesg,
real, dimension(hi%isdb:,hi%jsd:,:), intent(in)  arrayU,
real, dimension(hi%isd:,hi%jsdb:,:), intent(in)  arrayV,
type(hor_index_type), intent(in)  HI,
integer, intent(in), optional  haloshift,
logical, intent(in), optional  symmetric,
logical, intent(in), optional  omit_corners,
real, intent(in), optional  scale 
)
private
Parameters
[in]mesgIdentifying messages
[in]hiA horizontal index type
[in]arrayuThe u-component array to be checksummed
[in]arrayvThe v-component array to be checksummed
[in]haloshiftThe width of halos to check (default 0)
[in]symmetricIf true, do the checksums on the full symmetric computational domain.
[in]omit_cornersIf true, avoid checking diagonal shifts
[in]scaleA scaling factor for these arrays.

Definition at line 429 of file MOM_checksums.F90.

429  character(len=*), intent(in) :: mesg !< Identifying messages
430  type(hor_index_type), intent(in) :: hi !< A horizontal index type
431  real, dimension(HI%IsdB:,HI%jsd:,:), intent(in) :: arrayu !< The u-component array to be checksummed
432  real, dimension(HI%isd:,HI%JsdB:,:), intent(in) :: arrayv !< The v-component array to be checksummed
433  integer, optional, intent(in) :: haloshift !< The width of halos to check (default 0)
434  logical, optional, intent(in) :: symmetric !< If true, do the checksums on the full symmetric computational domain.
435  logical, optional, intent(in) :: omit_corners !< If true, avoid checking diagonal shifts
436  real, optional, intent(in) :: scale !< A scaling factor for these arrays.
437 
438  if (present(haloshift)) then
439  call chksum_u_3d(arrayu, 'u '//mesg, hi, haloshift, symmetric, omit_corners, scale)
440  call chksum_v_3d(arrayv, 'v '//mesg, hi, haloshift, symmetric, omit_corners, scale)
441  else
442  call chksum_u_3d(arrayu, 'u '//mesg, hi, symmetric=symmetric)
443  call chksum_v_3d(arrayv, 'v '//mesg, hi, symmetric=symmetric)
444  endif
445 

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