MOM6
mom_debugging::vec_chksum_a Interface Reference

Detailed Description

Definition at line 76 of file MOM_debugging.F90.

Private functions

subroutine chksum_vec_a3d (mesg, u_comp, v_comp, G, halos, scalars)
 
subroutine chksum_vec_a2d (mesg, u_comp, v_comp, G, halos, scalars)
 

Functions and subroutines

◆ chksum_vec_a2d()

subroutine mom_debugging::vec_chksum_a::chksum_vec_a2d ( character(len=*), intent(in)  mesg,
real, dimension(g%isd:,g%jsd:), intent(in)  u_comp,
real, dimension(g%isd:,g%jsd:), 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 707 of file MOM_debugging.F90.

707  character(len=*), intent(in) :: mesg !< An identifying message
708  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
709  real, dimension(G%isd:,G%jsd:), intent(in) :: u_comp !< The u-component of the vector
710  real, dimension(G%isd:,G%jsd:), intent(in) :: v_comp !< The v-component of the vector
711  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
712  logical, optional, intent(in) :: scalars !< If true this is a pair of
713  !! scalars that are being checked.
714 
715  logical :: are_scalars
716  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
717 
718  if (debug_chksums) then
719  call hchksum(u_comp, mesg//"(u)", g%HI, halos)
720  call hchksum(v_comp, mesg//"(v)", g%HI, halos)
721  endif
722  if (debug_redundant) then
723  if (are_scalars) then
724  call check_redundant_t(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
725  else
726  call check_redundant_t(mesg, u_comp, v_comp, g)
727  endif
728  endif
729 

◆ chksum_vec_a3d()

subroutine mom_debugging::vec_chksum_a::chksum_vec_a3d ( character(len=*), intent(in)  mesg,
real, dimension(g%isd:,g%jsd:,:), intent(in)  u_comp,
real, dimension(g%isd:,g%jsd:,:), 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 679 of file MOM_debugging.F90.

679  character(len=*), intent(in) :: mesg !< An identifying message
680  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
681  real, dimension(G%isd:,G%jsd:,:), intent(in) :: u_comp !< The u-component of the vector
682  real, dimension(G%isd:,G%jsd:,:), intent(in) :: v_comp !< The v-component of the vector
683  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
684  logical, optional, intent(in) :: scalars !< If true this is a pair of
685  !! scalars that are being checked.
686 
687  logical :: are_scalars
688  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
689 
690  if (debug_chksums) then
691  call hchksum(u_comp, mesg//"(u)", g%HI, halos)
692  call hchksum(v_comp, mesg//"(v)", g%HI, halos)
693  endif
694  if (debug_redundant) then
695  if (are_scalars) then
696  call check_redundant_t(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
697  else
698  call check_redundant_t(mesg, u_comp, v_comp, g)
699  endif
700  endif
701 

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