Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
882c7d2f
Commit
882c7d2f
authored
2 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added environment variable CDI_CHUNK_CACHE_MAX to set the maximum chunk cache size
parent
68d4930f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!34
Version 2.2.0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ChangeLog
+1
-0
1 addition, 0 deletions
ChangeLog
doc/tex/environment.tex
+1
-0
1 addition, 0 deletions
doc/tex/environment.tex
src/cdi_int.c
+4
-0
4 additions, 0 deletions
src/cdi_int.c
src/cdi_int.h
+1
-0
1 addition, 0 deletions
src/cdi_int.h
with
7 additions
and
0 deletions
ChangeLog
+
1
−
0
View file @
882c7d2f
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
...
...
This diff is collapsed.
Click to expand it.
doc/tex/environment.tex
+
1
−
0
View file @
882c7d2f
...
...
@@ -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.
\\
...
...
This diff is collapsed.
Click to expand it.
src/cdi_int.c
+
4
−
0
View file @
882c7d2f
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/cdi_int.h
+
1
−
0
View file @
882c7d2f
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment