Skip to content

Commit

Permalink
Newer netcdfs require that hdf5 be built with zlib
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsayad authored and cticenhour committed Sep 11, 2023
1 parent 11ad0bb commit 7952d5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/configure_petsc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ function configure_petsc()

# If HDF5 is not found locally, download it via PETSc
HDF5_FORTRAN_STR=''
HDF5_CONFIGURE_STR=''
if [ -z "$HDF5_STR" ]; then
HDF5_STR='--download-hdf5=1'
HDF5_FORTRAN_STR='--download-hdf5-fortran-bindings=0'
HDF5_CONFIGURE_STR='--with-zlib'
echo 'INFO: HDF5 library not detected, opting to download via PETSc...'
fi

Expand Down Expand Up @@ -121,6 +123,7 @@ function configure_petsc()
--download-superlu_dist=1 \
$HDF5_STR \
$HDF5_FORTRAN_STR \
$HDF5_CONFIGURE_STR \
$MAKE_NP_STR \
$MUMPS_ARM_STR \
"$@"
Expand Down

0 comments on commit 7952d5d

Please sign in to comment.