Skip to content

Commit

Permalink
debug block_control.F90
Browse files Browse the repository at this point in the history
  • Loading branch information
uramirez8707 authored Sep 10, 2024
1 parent 3087170 commit 413e59d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion block_control/block_control.F90
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

module block_control_mod

use mpp_mod, only: mpp_error, NOTE, WARNING, FATAL, mpp_sum, mpp_npes
use mpp_mod, only: mpp_error, NOTE, WARNING, FATAL, mpp_sum, mpp_npes, &
mpp_pe, mpp_sync
use mpp_domains_mod, only: mpp_compute_extent
use fms_string_utils_mod, only: string
implicit none
Expand Down Expand Up @@ -112,7 +113,10 @@ subroutine define_blocks (component, Block, isc, iec, jsc, jec, kpts, &
if ((mod(iec-isc+1,nx_block) .ne. 0) .or. (mod(jec-jsc+1,ny_block) .ne. 0)) then
non_uniform_blocks = 1
endif
print *, mpp_pe(), "Before mpp_sum"
call mpp_sync()
call mpp_sum(non_uniform_blocks)
print *, mpp_pe(), "After mpp_sum"
if (non_uniform_blocks > 0 ) then
call mpp_error(NOTE, string(non_uniform_blocks)//" out of "//string(mpp_npes())//" total domains "//&
"have non-uniform blocks for block size ("//string(nx_block)//","//string(ny_block)//")")
Expand Down

0 comments on commit 413e59d

Please sign in to comment.