Skip to content

Commit

Permalink
Paired B-velocity checksum calls in IST_chksum
Browse files Browse the repository at this point in the history
  Replaced separate calls to Bchksum with a single call to Bchksum_pair in
IST_chksum, to facilitate directional consistency testing.  All answers are
bitwise identical.
  • Loading branch information
Hallberg-NOAA committed Feb 6, 2019
1 parent 8c7dd19 commit ae3735b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SIS_types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module SIS_types
use MOM_time_manager, only : time_type, time_type_to_real
use SIS_diag_mediator, only : SIS_diag_ctrl, post_data=>post_SIS_data
use SIS_diag_mediator, only : register_SIS_diag_field, register_static_field
use SIS_debugging, only : chksum, Bchksum, hchksum, uvchksum
use SIS_debugging, only : chksum, Bchksum, Bchksum_pair, hchksum, uvchksum
use SIS_debugging, only : check_redundant_B, check_redundant_C
use SIS_tracer_registry, only : SIS_tracer_registry_type

Expand Down Expand Up @@ -2239,8 +2239,7 @@ subroutine IST_chksum(mesg, IST, G, IG, haloshift)
call hchksum(IST%enth_snow(:,:,:,1), trim(mesg)//" IST%enth_snow", G%HI, haloshift=hs)

if (allocated(IST%u_ice_B) .and. allocated(IST%v_ice_B)) then
if (allocated(IST%u_ice_B)) call Bchksum(IST%u_ice_B, mesg//" IST%u_ice_B", G%HI, haloshift=hs)
if (allocated(IST%v_ice_B)) call Bchksum(IST%v_ice_B, mesg//" IST%v_ice_B", G%HI, haloshift=hs)
call Bchksum_pair(mesg//" IST%[uv]_ice_B", IST%u_ice_B, IST%v_ice_B, G, halos=hs)
call check_redundant_B(mesg//" IST%u/v_ice", IST%u_ice_B, IST%v_ice_B, G)
endif
if (allocated(IST%u_ice_C) .and. allocated(IST%v_ice_C)) then
Expand Down

0 comments on commit ae3735b

Please sign in to comment.