]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
upgrade to pestc 3.15
authorBernard Sécherà <bernard.secher@cea.fr>
Fri, 16 Apr 2021 14:12:37 +0000 (16:12 +0200)
committerBernard Sécherà <bernard.secher@cea.fr>
Fri, 16 Apr 2021 14:12:37 +0000 (16:12 +0200)
applications/SOLVERLAB-master-MPI.pyconf
applications/SOLVERLAB-master.pyconf
products/compil_scripts/SOLVERLAB.sh
products/compil_scripts/petsc-3.15.0.sh [new file with mode: 0755]
products/petsc.pyconf

index ee44b561ce3e1e95fc8125221311367db1309b68..5667cbab3b9a5aecbc7a945577f75162bec9a53d 100644 (file)
@@ -61,8 +61,9 @@ APPLICATION :
         omniORBpy : '4.2.2'
         packaging : '17.1'
         ParaView : {tag : '5.8.0', hpc : 'yes', section: 'version_5_8_0_MPI'}
-        petsc : '3.14.0'
+        petsc : {tag : '3.15.0', section: 'version_3_15_0'}
         pockets : '0.6.2'
+        psutil : '5.7.2'
         Pygments : '2.0.2'
         pyparsing : '2.0.3'
         PyQt : '5.9'
index 5f1e7d144c62f9198d5db7226a8cbf29fde9d963..49dd8533a52966e081f485c5d0a042fc34bda787 100644 (file)
@@ -60,8 +60,9 @@ APPLICATION :
         omniORBpy : '4.2.2'
         packaging : '17.1'
         ParaView : '5.8.0'
-        petsc : '3.14.0'
+        petsc : {tag : '3.15.0', section: 'version_3_15_0'}
         pockets : '0.6.2'
+        psutil : '5.7.2'
         Pygments : '2.0.2'
         pyparsing : '2.0.3'
         PyQt : '5.9'
index e7dc566e234f74036b3fe705abacb103232d0606..bdaf75650a3a443cca848106f48ca32739ce2a75 100755 (executable)
@@ -5,7 +5,8 @@ echo "SOLVERLAB" $VERSION
 echo "##########################################################################"
 
 
-CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_ROOT_DIR=${PYTHON_ROOT_DIR}"
+CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPython_ROOT_DIR=${PYTHON_ROOT_DIR}"
+CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPython_EXECUTABLE=${PYTHONBIN}"
 CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYTHON_EXECUTABLE=${PYTHONBIN}"
 CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPYQT5_ROOT_DIR=${PYQT5_ROOT_DIR}"
 CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMATPLOTLIB_ROOT_DIR=${MATPLOTLIB_ROOT_DIR}"
diff --git a/products/compil_scripts/petsc-3.15.0.sh b/products/compil_scripts/petsc-3.15.0.sh
new file mode 100755 (executable)
index 0000000..7a9d7d0
--- /dev/null
@@ -0,0 +1,62 @@
+#!/bin/bash
+
+echo "##########################################################################"
+echo "Petsc" $VERSION
+echo "##########################################################################"
+
+
+
+cp -r $SOURCE_DIR/* .
+
+CONFIGURE_FLAGS=''
+CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-f2cblaslapack=ext/f2cblaslapack-3.4.2.q4.tar.gz"
+CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-slepc=ext/slepc-3.15.0.tar.gz"
+CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --with-hdf5-dir=${HDF5_ROOT_DIR}"
+CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-metis=ext/metis-5.1.0-p10.tar.gz"
+CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --with-debugging=0" # by default Petsc is build in debug mode
+echo
+if [ -n "${MPI_ROOT_DIR}" ]
+then
+  echo "*** configure with mpi"
+  CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-hypre=ext/hypre-2.20.0.tar.gz"
+  CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-parms=ext/parms-3.2-p5.tar.gz"
+  CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-parmetis=ext/parmetis-4.0.3-p6.tar.gz"
+  CONFIGURE_FLAGS=$CONFIGURE_FLAGS" --download-ptscotch=ext/scotch_6.1.0.tar.gz"
+  ./configure --prefix=${PRODUCT_INSTALL} --with-mpi-dir=${MPI_ROOT_DIR} ${CONFIGURE_FLAGS}
+else
+  echo "*** configure without mpi"
+  ./configure --prefix=${PRODUCT_INSTALL} --with-mpi=0 ${CONFIGURE_FLAGS}
+fi
+
+if [ $? -ne 0 ]
+then
+    echo "ERROR on configure"
+    exit 1
+fi
+
+MAKE_OPTIONS="PETSC_DIR=${BUILD_DIR}"
+
+echo
+echo "*** make" $MAKE_OPTIONS
+make $MAKE_OPTIONS
+if [ $? -ne 0 ]
+then
+    echo "ERROR on make"
+    exit 2
+fi
+
+# CentOS 6 automatically set PETSC_ARCH to arch-linux2-c-debug : remove arch specification
+# MAKE_OPTIONS=$MAKE_OPTIONS" PETSC_ARCH=arch-linux-c-debug"
+
+echo
+echo "*** make install"
+make $MAKE_OPTIONS install
+if [ $? -ne 0 ]
+then
+    echo "ERROR on make install"
+    exit 3
+fi
+
+echo
+echo "########## END"
+
index bfe320d5a71f78e03f0aef1065f7eac11952c7ee..778d7af9694cfe32c442d933e5d6dd73555d0dcd 100644 (file)
@@ -14,3 +14,20 @@ default :
     build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
     install_dir : 'base'
 }
+
+version_3_15_0 :
+{
+    name : "petsc"
+    build_source : "script"
+    compil_script :  $name + "-3.15.0.sh"
+    get_source : "archive"
+    environ :
+    {
+       env_script : $name + ".py"
+    }
+    depend : ["hdf5"]
+    opt_depend : ["openmpi"]
+    source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+    build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+    install_dir : 'base'
+}