]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
update petsc compil script and add SOLVERLABGUI compil scrpit
authorGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 28 Sep 2023 08:12:45 +0000 (10:12 +0200)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 22 Apr 2024 09:32:09 +0000 (11:32 +0200)
products/compil_scripts/petsc-3.17.0.sh

index 6a5e8d9930c21646ea3f3b6be7887a290f91ef0f..03f8596e87a4a08ae3f9cf703b62c0934c1a8955 100755 (executable)
@@ -13,8 +13,10 @@ cp -rf $SOURCE_DIR/* .
 CONFIGURE_FLAGS=
 CONFIGURE_FLAGS+=" --download-slepc=ext/slepc-3.19.2.tar.gz"
 
-if [ -f "${LAPACK_ROOT_DIR}/liblapack.a" ] && [ "${SAT_lapack_IS_NATIVE}" == "1"  ]; then
-   CONFIGURE_FLAGS+=" --with-blaslapack-dir=${LAPACK_ROOT_DIR}"
+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}"
 else
    CONFIGURE_FLAGS+=" --download-f2cblaslapack=ext/f2cblaslapack-3.8.0.q2.tar.gz"
 fi
@@ -27,6 +29,7 @@ fi
 CONFIGURE_FLAGS+=" --with-debugging=0" # by default Petsc is build in debug mode
 CONFIGURE_FLAGS+=" --with-petsc4py=yes"
 CONFIGURE_FLAGS+=" --download-slepc-configure-arguments=--with-slepc4py=yes "
+
 echo
 if [ -n "${SAT_HPC}" ]
 then
@@ -44,7 +47,6 @@ then
   echo "*** configure --prefix=${PRODUCT_INSTALL} --with-mpi-dir=${MPI_ROOT_DIR} ${CONFIGURE_FLAGS}"
   ./configure --prefix=${PRODUCT_INSTALL} --with-mpi-dir=${MPI_ROOT_DIR} ${CONFIGURE_FLAGS}
 else
-  #CONFIGURE_FLAGS+=" --with-metis-dir=${METIS_ROOT_DIR}"
   CONFIGURE_FLAGS+=" --download-metis=ext/metis-5.1.0-p11.tar.gz"
   echo "*** configure --prefix=${PRODUCT_INSTALL} --with-mpi=0 ${CONFIGURE_FLAGS}"
   ./configure --prefix=${PRODUCT_INSTALL} --with-mpi=0 ${CONFIGURE_FLAGS}