removed need of NC pointer in create for pnetcdf dispatch layer

This commit is contained in:
edwardhartnett 2019-08-01 11:31:03 -06:00
parent f80b751585
commit 5fa67ebe16

View File

@ -87,10 +87,15 @@ NCP_open(const char *path,
size_t *chunksizehintp,
void *mpidata,
const struct NC_Dispatch *table,
NC *nc)
NC *nc1)
{
int status;
NCP_INFO *nc5;
NC *nc;
/* Find pointer to NC for this file. */
status = NC_check_id(nc1->ext_ncid, &nc);
if (status != NC_NOERR) return status;
/* Check the omode for only valid flags */
if (omode & ~LEGAL_OPEN_FLAGS) return NC_EINVAL;