]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
petsc: start with a new build directory
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 28 Nov 2023 14:45:34 +0000 (15:45 +0100)
committerGuytri KASTANE <guytri.kastane@cea.fr>
Mon, 22 Apr 2024 09:24:05 +0000 (11:24 +0200)
products/compil_scripts/petsc-3.15.0.sh
products/compil_scripts/petsc-3.16.0.sh
products/compil_scripts/petsc-3.17.0.sh
products/compil_scripts/petsc.sh

index ca61a60051257fefed0c5cbe778177f9c681f3a4..c680fda035bfc4ab9f33159370524c1d5231b205 100755 (executable)
@@ -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"
index 106e805ee9adb447e7149bf029c24083ca64b5be..d78728f6f627db8dec74f848cc2b51a0bf2eda3e 100755 (executable)
@@ -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"
index 87f77c56c7b3e1c593ceecdec99d8c9629b3d4cd..b865423e45f6e54e6a3ce5c5d7fb0f402f8722a6 100755 (executable)
@@ -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}"
index 822f695d227ffce3d5676b19ce371df9ca7b1d20..d080c116090890f1d8c689e41db2d79bed153c14 100755 (executable)
@@ -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"