Skip to content

Commit

Permalink
Merge pull request #3078 from jedwards4b/shr_pio_bug_fix
Browse files Browse the repository at this point in the history
When using pio2 if the pio_numiotasks and pio_stride indicate processors above the model task count you will get an error. This change prevents that happening.

Test suite: by hand SMS_P45.f19_g16.X
Test baseline:
Test namelist changes:
Test status: bit for bit
Fixes

User interface changes?:

Update gh-pages html (Y/N)?:

Code review:
  • Loading branch information
fischer-ncar authored Apr 12, 2019
2 parents d65499e + bbfd536 commit e2d3dcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions share/util/shr_pio_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,7 @@ subroutine shr_pio_namelist_set(npes,mycomm, pio_stride, pio_root, pio_numiotask
(pio_iotype .eq. PIO_IOTYPE_PNETCDF .or. &
pio_iotype .eq. PIO_IOTYPE_NETCDF4P)) then
pio_numiotasks = 2
pio_stride = min(pio_stride, npes/2)
endif

!--------------------------------------------------------------------------
Expand Down

0 comments on commit e2d3dcf

Please sign in to comment.