mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
fixed parallel example to use appropriate parallel flag when opening file
This commit is contained in:
parent
c199d81417
commit
be2813aa5c
@ -53,8 +53,8 @@ program simple_xy_par_rd
|
||||
|
||||
! Open the file. NF90_NOWRITE tells netCDF we want read-only access to
|
||||
! the file.
|
||||
call check( nf90_open(FILE_NAME, NF90_NOWRITE, ncid, comm = MPI_COMM_WORLD, &
|
||||
info = MPI_INFO_NULL) )
|
||||
call check( nf90_open(FILE_NAME, IOR(NF90_NOWRITE, NF90_MPIIO), ncid, &
|
||||
comm = MPI_COMM_WORLD, info = MPI_INFO_NULL) )
|
||||
|
||||
! Get the varid of the data variable, based on its name.
|
||||
call check( nf90_inq_varid(ncid, "data", varid) )
|
||||
|
@ -37,7 +37,7 @@ program simple_xy_rd
|
||||
|
||||
! Open the file. NF90_NOWRITE tells netCDF we want read-only access to
|
||||
! the file.
|
||||
call check( nf90_open(FILE_NAME, NF90_NOWRITE, ncid) )
|
||||
call check( nf90_open(FILE_NAME, IOR(NF90_NOWRITE, NF90_MPIIO), ncid) )
|
||||
|
||||
! Get the varid of the data variable, based on its name.
|
||||
call check( nf90_inq_varid(ncid, "data", varid) )
|
||||
|
Loading…
Reference in New Issue
Block a user