From: Guytri KASTANE Date: Thu, 28 Sep 2023 10:30:42 +0000 (+0200) Subject: Fix conditions in petsc compil script X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=272c4107b36106119448e1871a542767b6d8f74d;p=tools%2Fsat_salome.git Fix conditions in petsc compil script --- 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"