Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
b7d291d2
Commit
b7d291d2
authored
Mar 14, 2017
by
Uwe Schulzweida
Browse files
Added function cdf_def_var_chunking().
parent
6bfa6f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdf_int.c
View file @
b7d291d2
...
...
@@ -771,6 +771,15 @@ void cdf_inq_attid(int ncid, int varid, const char *name, int *attnump)
if
(
status
!=
NC_NOERR
)
Error
(
"%s"
,
nc_strerror
(
status
));
}
#if defined (HAVE_NETCDF4)
void
cdf_def_var_chunking
(
int
ncid
,
int
varid
,
int
storage
,
const
size_t
*
chunksizesp
)
{
int
status
=
nc_def_var_chunking
(
ncid
,
varid
,
storage
,
chunksizesp
);
if
(
status
!=
NC_NOERR
)
Error
(
"%s"
,
nc_strerror
(
status
));
}
#endif
#endif
/*
* Local Variables:
...
...
src/cdf_int.h
View file @
b7d291d2
...
...
@@ -85,6 +85,8 @@ void cdf_inq_attlen (int ncid, int varid, const char *name, size_t *lenp);
void
cdf_inq_attname
(
int
ncid
,
int
varid
,
int
attnum
,
char
*
name
);
void
cdf_inq_attid
(
int
ncid
,
int
varid
,
const
char
*
name
,
int
*
attnump
);
void
cdf_def_var_chunking
(
int
ncid
,
int
varid
,
int
storage
,
const
size_t
*
chunksizesp
);
typedef
int
(
*
cdi_nc__create_funcp
)(
const
char
*
path
,
int
cmode
,
size_t
initialsz
,
size_t
*
chunksizehintp
,
int
*
ncidp
);
...
...
Write
Preview
Markdown
is supported
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