Skip to content

Commit e29dc26

Browse files
authored
Merge pull request #400 from thehesiod/nc_open_mem_fix
fix nc_open_mem
2 parents e39c26d + 756dca5 commit e29dc26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libdispatch/dfile.c

+2
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,7 @@ NC_open(const char *path0, int cmode,
18101810
NC* ncp = NULL;
18111811
NC_Dispatch* dispatcher = NULL;
18121812
int inmemory = ((cmode & NC_INMEMORY) == NC_INMEMORY);
1813+
int diskless = ((cmode & NC_DISKLESS) == NC_DISKLESS);
18131814
/* Need pieces of information for now to decide model*/
18141815
int model = 0;
18151816
int isurl = 0;
@@ -1857,6 +1858,7 @@ fprintf(stderr,"XXX: path0=%s path=%s\n",path0,path); fflush(stderr);
18571858
/* Try to find dataset type */
18581859
if(useparallel) flags |= NC_MPIIO;
18591860
if(inmemory) flags |= NC_INMEMORY;
1861+
if(diskless) flags |= NC_DISKLESS;
18601862
stat = NC_check_file_type(path,flags,parameters,&model,&version);
18611863
if(stat == NC_NOERR) {
18621864
if(model == 0)

0 commit comments

Comments
 (0)