add NC_WRITE to LEGAL_CREATE_FLAGS for PnetCDF dispatcher

This commit is contained in:
Wei-keng Liao 2018-10-04 11:53:39 -05:00
parent cfcf93eda3
commit 65ca7d09b9

View File

@ -30,7 +30,7 @@ typedef struct NCP_INFO
#define NCP_DATA_SET(nc,data) ((nc)->dispatchdata = (void*)(data))
/* NC_MPIIO and NC_MPIPOSIX are deprecated and hence ignored */
static const int LEGAL_CREATE_FLAGS = (NC_NOCLOBBER | NC_64BIT_OFFSET | NC_CLASSIC_MODEL | NC_SHARE | NC_LOCK | NC_64BIT_DATA | NC_MPIIO | NC_MPIPOSIX);
static const int LEGAL_CREATE_FLAGS = (NC_WRITE | NC_NOCLOBBER | NC_64BIT_OFFSET | NC_CLASSIC_MODEL | NC_SHARE | NC_LOCK | NC_64BIT_DATA | NC_MPIIO | NC_MPIPOSIX);
static const int LEGAL_OPEN_FLAGS = (NC_WRITE | NC_NOCLOBBER | NC_SHARE | NC_LOCK | NC_CLASSIC_MODEL | NC_64BIT_OFFSET | NC_64BIT_DATA | NC_MPIIO | NC_MPIPOSIX);