mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-04-06 18:00:24 +08:00
removed need of NC pointer in create for pnetcdf dispatch layer
This commit is contained in:
parent
f80b751585
commit
5fa67ebe16
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user