From: Nabil Ghodbane Date: Tue, 28 Nov 2023 14:45:34 +0000 (+0100) Subject: petsc: start with a new build directory X-Git-Tag: V9_12_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97966fe67cb7beaa41f0215eca01574b4f5d607e;p=tools%2Fsat_salome.git petsc: start with a new build directory --- diff --git a/products/compil_scripts/petsc-3.15.0.sh b/products/compil_scripts/petsc-3.15.0.sh index ca61a60..c680fda 100755 --- a/products/compil_scripts/petsc-3.15.0.sh +++ b/products/compil_scripts/petsc-3.15.0.sh @@ -4,9 +4,10 @@ echo "########################################################################## echo "Petsc" $VERSION echo "##########################################################################" - - -cp -r $SOURCE_DIR/* . +rm -rf $BUILD_DIR +mkdir $BUILD_DIR +cd $BUILD_DIR +cp -rf $SOURCE_DIR/* . CONFIGURE_FLAGS='' CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-f2cblaslapack=ext/f2cblaslapack-3.4.2.q4.tar.gz" diff --git a/products/compil_scripts/petsc-3.16.0.sh b/products/compil_scripts/petsc-3.16.0.sh index 106e805..d78728f 100755 --- a/products/compil_scripts/petsc-3.16.0.sh +++ b/products/compil_scripts/petsc-3.16.0.sh @@ -15,7 +15,11 @@ case $LINUX_DISTRIBUTION in ;; esac -cp -r $SOURCE_DIR/* . +# ensure that build directory is really deleted +rm -rf $BUILD_DIR +mkdir $BUILD_DIR +cd $BUILD_DIR +cp -rf $SOURCE_DIR/* . CONFIGURE_FLAGS= CONFIGURE_FLAGS+=" --download-f2cblaslapack=ext/f2cblaslapack-3.4.2.q4.tar.gz" diff --git a/products/compil_scripts/petsc-3.17.0.sh b/products/compil_scripts/petsc-3.17.0.sh index 87f77c5..b865423 100755 --- a/products/compil_scripts/petsc-3.17.0.sh +++ b/products/compil_scripts/petsc-3.17.0.sh @@ -4,7 +4,11 @@ echo "########################################################################## echo "Petsc" $VERSION echo "##########################################################################" -cp -r $SOURCE_DIR/* . +# ensure that build directory is really deleted +rm -rf $BUILD_DIR +mkdir $BUILD_DIR +cd $BUILD_DIR +cp -rf $SOURCE_DIR/* . CONFIGURE_FLAGS= CONFIGURE_FLAGS+=" --with-blaslapack-dir=${LAPACK_ROOT_DIR}" diff --git a/products/compil_scripts/petsc.sh b/products/compil_scripts/petsc.sh index 822f695..d080c11 100755 --- a/products/compil_scripts/petsc.sh +++ b/products/compil_scripts/petsc.sh @@ -4,9 +4,10 @@ echo "########################################################################## echo "Petsc" $VERSION echo "##########################################################################" - - -cp -r $SOURCE_DIR/* . +rm -rf $BUILD_DIR +mkdir $BUILD_DIR +cd $BUILD_DIR +cp -rf $SOURCE_DIR/* . CONFIGURE_FLAGS='' CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-f2cblaslapack=ext/f2cblaslapack-3.4.2.q4"