MOM6
mom_debugging::vec_chksum_b Interface Reference

Detailed Description

Definition at line 73 of file MOM_debugging.F90.

Private functions

subroutine chksum_vec_b3d (mesg, u_comp, v_comp, G, halos, scalars)
 
subroutine chksum_vec_b2d (mesg, u_comp, v_comp, G, halos, scalars, symmetric)
 

Functions and subroutines

◆ chksum_vec_b2d()

subroutine mom_debugging::vec_chksum_b::chksum_vec_b2d ( character(len=*), intent(in)  mesg,
real, dimension(g%isdb:,g%jsdb:), intent(in)  u_comp,
real, dimension(g%isdb:,g%jsdb:), intent(in)  v_comp,
type(ocean_grid_type), intent(inout)  G,
integer, intent(in), optional  halos,
logical, intent(in), optional  scalars,
logical, intent(in), optional  symmetric 
)
private
Parameters
[in]mesgAn identifying message
[in,out]gThe ocean's grid structure
[in]u_compThe u-component of the vector
[in]v_compThe v-component of the vector
[in]halosThe width of halos to check (default 0)
[in]scalarsIf true this is a pair of scalars that are being checked.
[in]symmetricIf true, do the checksums on the full symmetric computational domain.

Definition at line 650 of file MOM_debugging.F90.

650  character(len=*), intent(in) :: mesg !< An identifying message
651  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
652  real, dimension(G%IsdB:,G%JsdB:), intent(in) :: u_comp !< The u-component of the vector
653  real, dimension(G%IsdB:,G%JsdB:), intent(in) :: v_comp !< The v-component of the vector
654  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
655  logical, optional, intent(in) :: scalars !< If true this is a pair of
656  !! scalars that are being checked.
657  logical, optional, intent(in) :: symmetric !< If true, do the checksums on the
658  !! full symmetric computational domain.
659 
660  logical :: are_scalars
661  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
662 
663  if (debug_chksums) then
664  call bchksum(u_comp, mesg//"(u)", g%HI, halos, symmetric=symmetric)
665  call bchksum(v_comp, mesg//"(v)", g%HI, halos, symmetric=symmetric)
666  endif
667  if (debug_redundant) then
668  if (are_scalars) then
669  call check_redundant_b(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
670  else
671  call check_redundant_b(mesg, u_comp, v_comp, g)
672  endif
673  endif
674 

◆ chksum_vec_b3d()

subroutine mom_debugging::vec_chksum_b::chksum_vec_b3d ( character(len=*), intent(in)  mesg,
real, dimension(g%isdb:,g%jsdb:,:), intent(in)  u_comp,
real, dimension(g%isdb:,g%jsdb:,:), intent(in)  v_comp,
type(ocean_grid_type), intent(inout)  G,
integer, intent(in), optional  halos,
logical, intent(in), optional  scalars 
)
private
Parameters
[in]mesgAn identifying message
[in,out]gThe ocean's grid structure
[in]u_compThe u-component of the vector
[in]v_compThe v-component of the vector
[in]halosThe width of halos to check (default 0)
[in]scalarsIf true this is a pair of scalars that are being checked.

Definition at line 623 of file MOM_debugging.F90.

623  character(len=*), intent(in) :: mesg !< An identifying message
624  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
625  real, dimension(G%IsdB:,G%JsdB:,:), intent(in) :: u_comp !< The u-component of the vector
626  real, dimension(G%IsdB:,G%JsdB:,:), intent(in) :: v_comp !< The v-component of the vector
627  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
628  logical, optional, intent(in) :: scalars !< If true this is a pair of
629  !! scalars that are being checked.
630 
631  logical :: are_scalars
632  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
633 
634  if (debug_chksums) then
635  call bchksum(u_comp, mesg//"(u)", g%HI, halos)
636  call bchksum(v_comp, mesg//"(v)", g%HI, halos)
637  endif
638  if (debug_redundant) then
639  if (are_scalars) then
640  call check_redundant_b(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
641  else
642  call check_redundant_b(mesg, u_comp, v_comp, g)
643  endif
644  endif
645 

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