Skip to content

Commit

Permalink
Bug fix of openning flux file for parallel netcdf read. (NOAA-EMC#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenMeng-NOAA authored Feb 14, 2020
1 parent 6d74f35 commit 28fcb61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sorc/ncep_post.fd/INITPOST_GFS_NETCDF_PARA.f
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ SUBROUTINE INITPOST_GFS_NETCDF_PARA(ncid3d)
deallocate(recname)

! open flux file
Status = nf90_open(trim(fileNameFlux),NF90_NOWRITE, ncid2d)

Status = nf90_open(trim(fileNameFlux),ior(nf90_nowrite, nf90_mpiio), &
ncid2d,comm=mpi_comm_world,info=mpi_info_null)
if ( Status /= 0 ) then
print*,'error opening ',fileNameFlux, ' Status = ', Status
print*,'skip reading of flux file'
Expand Down

0 comments on commit 28fcb61

Please sign in to comment.