mirror of https://github.com/ecmwf/eccodes.git
Work on memfs
This commit is contained in:
parent
dc378c3fdb
commit
8d6f29c7c1
|
@ -98,4 +98,13 @@
|
|||
|
||||
#cmakedefine HAVE_MEMFS
|
||||
|
||||
#ifdef HAVE_MEMFS
|
||||
#undef ECCODES_DEFINITION_PATH
|
||||
#define ECCODES_DEFINITION_PATH "/MEMFS/definitions"
|
||||
#undef ECCODES_SAMPLES_PATH
|
||||
#define ECCODES_SAMPLES_PATH "/MEMFS/samples"
|
||||
#undef ECCODES_IFS_SAMPLES_PATH
|
||||
#define ECCODES_IFS_SAMPLES_PATH "/MEMFS/ifs_samples"
|
||||
#endif
|
||||
|
||||
#endif /* eccodes_config_h */
|
||||
|
|
2
memfs.py
2
memfs.py
|
@ -166,7 +166,7 @@ for n in NAMES:
|
|||
""" % (n,), file=g)
|
||||
|
||||
print("""
|
||||
/*printf("%s ===> %s\\n", path, start);*/
|
||||
/* printf("%s ===> %s\\n", path, start); */
|
||||
if(start == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
@ -416,13 +416,6 @@ grib_context* grib_context_get_default()
|
|||
default_grib_context.log_stream=stdout;
|
||||
}
|
||||
|
||||
#ifdef HAVE_MEMFS
|
||||
if(!default_grib_context.grib_samples_path)
|
||||
default_grib_context.grib_samples_path = "<memfs>";
|
||||
if(!default_grib_context.grib_definition_files_path)
|
||||
default_grib_context.grib_definition_files_path = "<memfs>";
|
||||
#endif
|
||||
|
||||
#ifdef ECCODES_SAMPLES_PATH
|
||||
if(!default_grib_context.grib_samples_path)
|
||||
default_grib_context.grib_samples_path = ECCODES_SAMPLES_PATH ;
|
||||
|
|
Loading…
Reference in New Issue