Skip to content

Commit 23c6fde

Browse files
committed
PnetCDF driver: fix file open mode for reading decomposition files
1 parent 1fb7c5d commit 23c6fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/drivers/e3sm_io_driver_pnc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ int e3sm_io_driver_pnc::open (std::string path, MPI_Comm comm, MPI_Info info, in
9292
MPI_Offset size;
9393
MPI_Offset put_buffer_size_limit;
9494

95-
err = ncmpi_open (comm, path.c_str (), NC_64BIT_DATA, info, fid);
95+
err = ncmpi_open (comm, path.c_str (), NC_NOWRITE, info, fid);
9696
CHECK_NCERR
9797

9898
put_buffer_size_limit = 10485760;

0 commit comments

Comments
 (0)