Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
61d567f7
Commit
61d567f7
authored
Feb 23, 2017
by
Uwe Schulzweida
Browse files
test nc_get_var_chunk_cache().
parent
b41779b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
61d567f7
...
...
@@ -1085,7 +1085,14 @@ void cdf_scan_var_attr(int nvars, ncvar_t *ncvars, ncdim_t *ncdims, int timedimi
int
storage_in
;
nc_inq_var_deflate
(
ncid
,
ncvarid
,
&
shuffle
,
&
deflate
,
&
deflate_level
);
if
(
deflate
>
0
)
ncvars
[
ncvarid
].
deflate
=
1
;
/*
size_t cache_size, nelems;
float preemption;
nc_get_chunk_cache(&cache_size, &nelems, &preemption);
printf("cache_size %lu nelems %lu preemption %g\n", cache_size, nelems, preemption);
nc_get_var_chunk_cache(ncid, ncvarid, &cache_size, &nelems, &preemption);
printf("varid %d cache_size %lu nelems %lu preemption %g\n", ncvarid, cache_size, nelems, preemption);
*/
if
(
nc_inq_var_chunking
(
ncid
,
ncvarid
,
&
storage_in
,
chunks
)
==
NC_NOERR
)
{
if
(
storage_in
==
NC_CHUNKED
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment