]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
added MPI_ROOT_DIR in solverlab compil script
authorNicolas OTTON <nicolaS.otton@cea.fr>
Thu, 20 Jan 2022 16:00:54 +0000 (17:00 +0100)
committerNicolas OTTON <nicolaS.otton@cea.fr>
Thu, 20 Jan 2022 16:01:10 +0000 (17:01 +0100)
products/compil_scripts/SOLVERLAB.sh

index 9231ec0ad5650f0ce4e4da7ccc1e684e99575dbd..baab925e597199758feb9bb5e2bf3a4f3fd7f138 100755 (executable)
@@ -35,13 +35,15 @@ then
     if [ $VERSION == "V9_6_0" ]
     then
         # following variable is automatically detected in environment after 9.6.0
-        CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMPI_HOME=${MPI_ROOT_DIR}"
+        CMAKE_OPTIONS+=" -DMPI_HOME=${MPI_ROOT_DIR}"
     fi
-    CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_CXX_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpic++"
-    CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_C_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpicc"
+    CMAKE_OPTIONS+=" -DMPI_ROOT_DIR=${MPI_ROOT_DIR}"
+    CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpic++"
+    CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_ROOT_DIR}/bin/mpicc"
+    CMAKE_OPTIONS+=" -DSOLVERLAB_WITH_MPI=ON"
     if [ -n "$MPI4PY_ROOT_DIR" ]
     then
-       CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
+       CMAKE_OPTIONS+=" -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
     else
         echo "WARNING: mpi4py environment variable not detected"
     fi