Skip to content

Commit

Permalink
Typo in nmode0 in PIO for CESM_COUPLED (CICE-Consortium#938)
Browse files Browse the repository at this point in the history
For CESMCOUPLED, the pio_iotype is set though CMEPS. For completeness, we also need to check the ioformat set through CMEPS. ioformat is used to set the nmode0. nmode0 and clobber combine to set the nmode flag for pio_createfile / pio_openfile operations. Due a typo nmode0 was not being set for netcdf4 iotypes (before this change).
  • Loading branch information
anton-seaice committed Feb 28, 2024
1 parent 64177e3 commit 1a530ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cicecore/cicedyn/infrastructure/io/io_pio2/ice_pio.F90
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ subroutine ice_pio_init(mode, filename, File, clobber, fformat, &
if ((pio_iotype==PIO_IOTYPE_NETCDF).or.(pio_iotype==PIO_IOTYPE_PNETCDF)) then
nmode0 = shr_pio_getioformat(inst_name)
else
nmode=0
nmode0 = 0
endif

call pio_seterrorhandling(ice_pio_subsystem, PIO_RETURN_ERROR)
Expand Down

0 comments on commit 1a530ec

Please sign in to comment.