Skip to content

Commit

Permalink
PnetCDF driver: fix file open mode for reading decomposition files
Browse files Browse the repository at this point in the history
  • Loading branch information
wkliao committed Nov 4, 2024
1 parent 1fb7c5d commit 23c6fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/e3sm_io_driver_pnc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int e3sm_io_driver_pnc::open (std::string path, MPI_Comm comm, MPI_Info info, in
MPI_Offset size;
MPI_Offset put_buffer_size_limit;

err = ncmpi_open (comm, path.c_str (), NC_64BIT_DATA, info, fid);
err = ncmpi_open (comm, path.c_str (), NC_NOWRITE, info, fid);
CHECK_NCERR

put_buffer_size_limit = 10485760;
Expand Down

0 comments on commit 23c6fde

Please sign in to comment.