Do checksums on the components of a B-grid vector.
Definition at line 60 of file MOM_debugging.F90.
|
subroutine | chksum_vec_b3d (mesg, u_comp, v_comp, G, halos, scalars) |
| Do a checksum and redundant point check on a 3d B-grid vector. More...
|
|
subroutine | chksum_vec_b2d (mesg, u_comp, v_comp, G, halos, scalars, symmetric) |
|
◆ 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] | mesg | An identifying message |
[in,out] | g | The ocean's grid structure |
[in] | u_comp | The u-component of the vector |
[in] | v_comp | The v-component of the vector |
[in] | halos | The width of halos to check (default 0) |
[in] | scalars | If true this is a pair of scalars that are being checked. |
[in] | symmetric | If true, do the checksums on the full symmetric computational domain. |
Definition at line 643 of file MOM_debugging.F90.
643 character(len=*),
intent(in) :: mesg
644 type(ocean_grid_type),
intent(inout) :: G
645 real,
dimension(G%IsdB:,G%JsdB:),
intent(in) :: u_comp
646 real,
dimension(G%IsdB:,G%JsdB:),
intent(in) :: v_comp
647 integer,
optional,
intent(in) :: halos
648 logical,
optional,
intent(in) :: scalars
650 logical,
optional,
intent(in) :: symmetric
653 logical :: are_scalars
654 are_scalars = .false. ;
if (
present(scalars)) are_scalars = scalars
656 if (debug_chksums)
then
657 call bchksum(u_comp, mesg//
"(u)", g%HI, halos, symmetric=symmetric)
658 call bchksum(v_comp, mesg//
"(v)", g%HI, halos, symmetric=symmetric)
660 if (debug_redundant)
then
661 if (are_scalars)
then
662 call check_redundant_b(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
664 call check_redundant_b(mesg, u_comp, v_comp, g)
◆ 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 |
Do a checksum and redundant point check on a 3d B-grid vector.
- Parameters
-
[in] | mesg | An identifying message |
[in,out] | g | The ocean's grid structure |
[in] | u_comp | The u-component of the vector |
[in] | v_comp | The v-component of the vector |
[in] | halos | The width of halos to check (default 0) |
[in] | scalars | If true this is a pair of scalars that are being checked. |
Definition at line 616 of file MOM_debugging.F90.
616 character(len=*),
intent(in) :: mesg
617 type(ocean_grid_type),
intent(inout) :: G
618 real,
dimension(G%IsdB:,G%JsdB:,:),
intent(in) :: u_comp
619 real,
dimension(G%IsdB:,G%JsdB:,:),
intent(in) :: v_comp
620 integer,
optional,
intent(in) :: halos
621 logical,
optional,
intent(in) :: scalars
624 logical :: are_scalars
625 are_scalars = .false. ;
if (
present(scalars)) are_scalars = scalars
627 if (debug_chksums)
then
628 call bchksum(u_comp, mesg//
"(u)", g%HI, halos)
629 call bchksum(v_comp, mesg//
"(v)", g%HI, halos)
631 if (debug_redundant)
then
632 if (are_scalars)
then
633 call check_redundant_b(mesg, u_comp, v_comp, g, direction=to_all+scalar_pair)
635 call check_redundant_b(mesg, u_comp, v_comp, g)
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/src/diagnostics/MOM_debugging.F90