Skip to content
GitLab
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
29548d2f
Commit
29548d2f
authored
Aug 25, 2020
by
Uwe Schulzweida
Browse files
Added check for NetCDF4 function nc_def_var_szip().
parent
47ac3c2a
Changes
2
Show whitespace changes
Inline
Side-by-side
m4/acx_options.m4
View file @
29548d2f
...
...
@@ -158,6 +158,10 @@ AS_VAR_IF([ENABLE_NETCDF], [yes],
[AC_DEFINE([HAVE_NC4SZLIB],[1],[Define to 1 for NetCDF4/szlib support])
ENABLE_NC4SZLIB=yes])])
AS_IF([test "x$ENABLE_NC4SZLIB" = "xyes"],
[AC_SEARCH_LIBS([nc_def_var_szip], [netcdf],
[AC_DEFINE([HAVE_NC_DEF_VAR_SZIP],[1],[Define to 1 for NetCDF4 nc_def_var_szip support])],,[-lhdf5])])
AS_IF([test "x$ENABLE_NC4HDF5" = "xyes"],
[AC_SEARCH_LIBS([H5TS_mutex_lock], [netcdf],
[AC_DEFINE([HAVE_NC4HDF5_THREADSAFE],[1],[Define to 1 for NetCDF4/HDF5 threadsafe support])],,[-lhdf5])])
...
...
src/cdf_write.c
View file @
29548d2f
...
...
@@ -39,7 +39,7 @@ void cdfDefVarDeflate(int ncid, int ncvarID, int deflate_level)
void
cdfDefVarSzip
(
int
ncid
,
int
ncvarID
,
int
pixels_per_block
)
{
#ifdef HAVE_NC
4SZLIB
#ifdef HAVE_NC
_DEF_VAR_SZIP
// Set options_mask.
/*
H5_SZIP_ALLOW_K13_OPTION_MASK 1
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment