]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Fix conditions in petsc compil script
authorGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 28 Sep 2023 10:30:42 +0000 (12:30 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 28 Sep 2023 10:30:42 +0000 (12:30 +0200)
products/compil_scripts/petsc-3.19.4.sh

index 5058dad841dca6ccd67e149a384165b0194609fd..81c65659e291f3aaa10b52b0d11b27ee7e7a4592 100755 (executable)
@@ -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"