From e6dfd30d71b0b058364e49644f37892deb8b4fbe Mon Sep 17 00:00:00 2001 From: Guytri KASTANE Date: Thu, 28 Sep 2023 10:12:45 +0200 Subject: [PATCH] update petsc compil script and add SOLVERLABGUI compil scrpit --- products/compil_scripts/petsc-3.17.0.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/products/compil_scripts/petsc-3.17.0.sh b/products/compil_scripts/petsc-3.17.0.sh index 6a5e8d9..03f8596 100755 --- a/products/compil_scripts/petsc-3.17.0.sh +++ b/products/compil_scripts/petsc-3.17.0.sh @@ -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} -- 2.39.2