Skip to content

Commit

Permalink
Merge pull request #1522 from marshallward/no_1pe_io_layout
Browse files Browse the repository at this point in the history
FMS1: Don't create IO domains for single-PE domain
  • Loading branch information
Hallberg-NOAA authored Oct 25, 2021
2 parents 7e8d6e2 + 2f91303 commit 1700498
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config_src/infra/FMS1/MOM_domain_infra.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1716,13 +1716,13 @@ subroutine clone_MD_to_d2D(MD_in, mpp_domain, min_halo, halo_size, symmetric, &
symmetry=symmetric_dom, xextent=xextent, yextent=yextent, name=dom_name)
endif

if ((MD_in%io_layout(1) + MD_in%io_layout(2) > 0) .and. &
(MD_in%layout(1)*MD_in%layout(2) > 1)) then
call mpp_define_io_domain(mpp_domain, MD_in%io_layout)
else
call mpp_define_io_domain(mpp_domain, (/ 1, 1 /) )
if (MD_in%layout(1) * MD_in%layout(2) > 1) then
if ((MD_in%io_layout(1) + MD_in%io_layout(2) > 0)) then
call mpp_define_io_domain(mpp_domain, MD_in%io_layout)
else
call mpp_define_io_domain(mpp_domain, [1, 1] )
endif
endif

end subroutine clone_MD_to_d2D

!> Returns the index ranges that have been stored in a MOM_domain_type
Expand Down

0 comments on commit 1700498

Please sign in to comment.