From 272c4107b36106119448e1871a542767b6d8f74d Mon Sep 17 00:00:00 2001 From: Guytri KASTANE Date: Thu, 28 Sep 2023 12:30:42 +0200 Subject: [PATCH] Fix conditions in petsc compil script --- products/compil_scripts/petsc-3.19.4.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/products/compil_scripts/petsc-3.19.4.sh b/products/compil_scripts/petsc-3.19.4.sh index 5058dad..81c6565 100755 --- a/products/compil_scripts/petsc-3.19.4.sh +++ b/products/compil_scripts/petsc-3.19.4.sh @@ -23,7 +23,7 @@ CONFIGURE_FLAGS+=" --download-slepc=ext/slepc-3.19.2.tar.gz" if [ -f "${NATIVE_PATH}/liblapack.a" ] && [ "${SAT_lapack_IS_NATIVE}" == "1" ]; then CONFIGURE_FLAGS+=" --with-blaslapack-dir=${NATIVE_PATH}" elif [ -n "${LAPACK_ROOT_DIR}" ] && [ "${SAT_lapack_IS_NATIVE}" != "1" ]; then - CONFIGURE_FLAGS+=" --with-blaslapack-dir=${LAPACK_ROOT_DIR}" + CONFIGURE_FLAGS+=" --with-blaslapack-dir=${LAPACK_ROOT_DIR}" else CONFIGURE_FLAGS+=" --download-f2cblaslapack=ext/f2cblaslapack-3.8.0.q2.tar.gz" fi @@ -31,9 +31,9 @@ fi CONFIGURE_FLAGS+=" --with-python-dir=${PYTHON_ROOT_DIR}" CONFIGURE_FLAGS+=" --with-hdf5-dir=${HDF5_ROOT_DIR}" -if [ -f "${NATIVE_PATH}/libfftw3.a" ] && [ ${SAT_fftw_IS_NATIVE} == "1" ]; then +if [ -f "${NATIVE_PATH}/libfftw3.a" ] && [ "${SAT_fftw_IS_NATIVE}" == "1" ]; then CONFIGURE_FLAGS+=" --with-fftw-dir=${NATIVE_PATH}" -elif [ -n "${FFTW_ROOT_DIR}" ] && [ ${SAT_fftw_IS_NATIVE} != "1" ]; then +elif [ -n "${FFTW_ROOT_DIR}" ] && [ "${SAT_fftw_IS_NATIVE}" != "1" ]; then CONFIGURE_FLAGS+=" --with-fftw-dir=${FFTW_ROOT_DIR}" else CONFIGURE_FLAGS+=" --download-fftw=ext/fftw-3.3.10.tar.gz" -- 2.39.2