removed need of NC pointer in create for pnetcdf dispatch layer
@@ -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;
