MOM6
mom_debugging::vec_chksum_c Interface Reference

Detailed Description

Definition at line 70 of file MOM_debugging.F90.

Private functions

subroutine chksum_vec_c3d (mesg, u_comp, v_comp, G, halos, scalars)
 
subroutine chksum_vec_c2d (mesg, u_comp, v_comp, G, halos, scalars)
 

Functions and subroutines

◆ chksum_vec_c2d()

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

597  character(len=*), intent(in) :: mesg !< An identifying message
598  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
599  real, dimension(G%IsdB:,G%jsd:), intent(in) :: u_comp !< The u-component of the vector
600  real, dimension(G%isd:,G%JsdB:), intent(in) :: v_comp !< The v-component of the vector
601  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
602  logical, optional, intent(in) :: scalars !< If true this is a pair of
603  !! scalars that are being checked.
604 
605  logical :: are_scalars
606  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
607 
608  if (debug_chksums) then
609  call uvchksum(mesg, u_comp, v_comp, g%HI, halos)
610  endif
611  if (debug_redundant) then
612  if (are_scalars) then
613  call check_redundant_c(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
614  else
615  call check_redundant_c(mesg, u_comp, v_comp, g)
616  endif
617  endif
618 

◆ chksum_vec_c3d()

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

571  character(len=*), intent(in) :: mesg !< An identifying message
572  type(ocean_grid_type), intent(inout) :: g !< The ocean's grid structure
573  real, dimension(G%IsdB:,G%jsd:,:), intent(in) :: u_comp !< The u-component of the vector
574  real, dimension(G%isd:,G%JsdB:,:), intent(in) :: v_comp !< The v-component of the vector
575  integer, optional, intent(in) :: halos !< The width of halos to check (default 0)
576  logical, optional, intent(in) :: scalars !< If true this is a pair of
577  !! scalars that are being checked.
578 
579  logical :: are_scalars
580  are_scalars = .false. ; if (present(scalars)) are_scalars = scalars
581 
582  if (debug_chksums) then
583  call uvchksum(mesg, u_comp, v_comp, g%HI, halos)
584  endif
585  if (debug_redundant) then
586  if (are_scalars) then
587  call check_redundant_c(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
588  else
589  call check_redundant_c(mesg, u_comp, v_comp, g)
590  endif
591  endif
592 

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