Skip to content
Snippets Groups Projects
Commit 882c7d2f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added environment variable CDI_CHUNK_CACHE_MAX to set the maximum chunk cache size

parent 68d4930f
No related branches found
No related tags found
1 merge request!34Version 2.2.0
2022-10-16 Uwe Schulzweida
* Added environment variable CDI_CHUNK_CACHE to set the NetCDF4 chunk cache size
* Added environment variable CDI_CHUNK_CACHE_MAX to set the maximum chunk cache size
2022-10-14 Uwe Schulzweida
......
......@@ -12,6 +12,7 @@ The following table describes the environment variables that affect {\CDI}.
{\bfseries Variable name} & {\bfseries Default} & {\bfseries Description} \\ \hline
CDI\_CONVERT\_CUBESPHERE & 1 & Convert cubed-sphere data to unstructured grid. \\
CDI\_CHUNK\_CACHE & 0 & Set the NetCDF4 chunk cache size. \\
CDI\_CHUNK\_CACHE\_MAX & 0 & Set maximum chunk cache size. \\
CDI\_GRIB1\_TEMPLATE & None & Path to a GRIB1 template file for GRIB\_API. \\
CDI\_GRIB2\_TEMPLATE & None & Path to a GRIB2 template file for GRIB\_API. \\
CDI\_INVENTORY\_MODE & None & Set to time to skip double variable entries. \\
......
......@@ -40,6 +40,7 @@ int CDI_CMOR_Mode = 0;
int CDI_Reduce_Dim = 0;
size_t CDI_Netcdf_Hdr_Pad = 0UL;
size_t CDI_Chunk_Cache = 0UL;
size_t CDI_Chunk_Cache_Max = 0UL;
bool CDI_Netcdf_Lazy_Grid_Load = false;
char *cdiPartabPath = NULL;
......@@ -367,6 +368,9 @@ cdiInitialize(void)
value = cdi_getenv_int("CDI_CHUNK_CACHE");
if (value >= 0) CDI_Chunk_Cache = (size_t) value;
value = cdi_getenv_int("CDI_CHUNK_CACHE_MAX");
if (value >= 0) CDI_Chunk_Cache_Max = (size_t) value;
envstr = getenv("CDI_GRIB1_TEMPLATE");
if (envstr) CDI_GRIB1_Template = envstr;
......
......@@ -379,6 +379,7 @@ extern int CDI_CMOR_Mode;
extern int CDI_Reduce_Dim;
extern size_t CDI_Netcdf_Hdr_Pad;
extern size_t CDI_Chunk_Cache;
extern size_t CDI_Chunk_Cache_Max;
extern bool CDI_Netcdf_Lazy_Grid_Load;
extern int STREAM_Debug;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment