Skip to content

Commit 303a848

Browse files
committed
more updates for netcdf-c/4.9.3
1 parent 66a0582 commit 303a848

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/clib/pio_nc4.c

-3
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,6 @@ PIOc_get_var_chunk_cache(int ncid, int varid, PIO_Offset *sizep, PIO_Offset *nel
13081308
}
13091309
/* use this variable in the NETCDF library (introduced in v4.9.0) to determine if the following
13101310
functions are available */
1311-
#ifdef NC_HAS_MULTIFILTERS
13121311
/**
13131312
* Set the variable filter ids
13141313
*
@@ -1878,8 +1877,6 @@ PIOc_inq_filter_avail(int ncid, unsigned int id )
18781877
}
18791878
// PIO_HAS_PAR_FILTERS
18801879
#endif
1881-
// NC_HAS_MULTIFILTERS
1882-
#endif
18831880
#ifdef NC_HAS_QUANTIZE
18841881
/**
18851882
* Turn on quantization for a variable

src/clib/pioc_support.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3111,7 +3111,8 @@ iotype_is_valid(int iotype)
31113111
ret++;
31123112

31133113
/* Some builds include netCDF-4. */
3114-
#ifdef NC_HAS_NC4
3114+
/* as of netcdf 4.9.3 NC_HAS_NC4 is no longer defined */
3115+
#if NC_HAS_NC4 || (NC_VERSION_PATCH > 2)
31153116
if (iotype == PIO_IOTYPE_NETCDF4C || iotype == PIO_IOTYPE_NETCDF4P)
31163117
ret++;
31173118
#endif /* _NETCDF4 */

src/flib/pio_nf.F90

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ module pio_nf
140140
pio_def_var_quantize , &
141141
pio_inq_var_quantize , &
142142
#endif
143-
#ifdef NC_HAS_MULTIFILTERS
143+
!!#ifdef NC_HAS_MULTIFILTERS
144144
#ifdef NC_HAS_BZ
145145
pio_inq_var_bzip2 , &
146146
pio_def_var_bzip2 , &
@@ -154,7 +154,7 @@ module pio_nf
154154
pio_inq_var_filter_info , &
155155
pio_inq_filter_avail , &
156156
#endif
157-
#endif
157+
!!#endif
158158
pio_set_fill
159159
! pio_copy_att to be done
160160

0 commit comments

Comments
 (0)