]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
add modifications for native compilation
authorGuytri KASTANE <guytri.kastane@cea.fr>
Thu, 21 Sep 2023 11:31:28 +0000 (13:31 +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
products/petsc.pyconf

index 628d393e7d544cbf2826187a51e9e4c0b41aa8c9..051daff89f5104509dd5783067a51135b1e483c5 100755 (executable)
@@ -11,6 +11,7 @@ cd $BUILD_DIR
 cp -rf $SOURCE_DIR/* .
 
 CONFIGURE_FLAGS=
+CONFIGURE_FLAGS+=" --download-slepc=ext/slepc-3.19.2.tar.gz"
 CONFIGURE_FLAGS+=" --with-blaslapack-dir=${LAPACK_ROOT_DIR}"
 CONFIGURE_FLAGS+=" --with-python-dir=${PYTHON_ROOT_DIR}"
 CONFIGURE_FLAGS+=" --download-slepc=ext/slepc-3.17.0.tar.gz"
@@ -32,12 +33,13 @@ then
   then
       CONFIGURE_FLAGS+=" --with-mpi4py-dir=${MPI4PY_ROOT_DIR}"
   else
-      CONFIGURE_FLAGS+=" --download-mpi4py=ext/mpi4py-3.0.3.tar.gz"
+      CONFIGURE_FLAGS+=" --download-mpi4py=yes" #ext/mpi4py-3.0.3.tar.gz"
   fi
   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+=" --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}
 fi
@@ -71,6 +73,15 @@ then
     exit 3
 fi
 
+echo
+echo "*** make check"
+make $MAKE_OPTIONS check
+if [ $? -ne 0 ]
+then
+    echo "ERROR on make check"
+    exit 4
+fi
+
 echo
 echo "########## END"
 
index 6256fe451c6b2b03f602e7a2ac4d5d9462d229c6..d9bbd830d2b1bed43ed27139974c80a05ea34cde 100644 (file)
@@ -25,6 +25,7 @@ version_3_19_4 :
 {
     compil_script :  "petsc-3.19.4.sh"
     depend : ["hdf5", "Python", "lapack","fftw", "llvm"]
+    patches: ['petsc-3.19.4-mpi4py.patch','petsc-3.19.4-libpath.patch']
 }
 
 version_3_17_0 :