]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #26662: add mpi4py dependency to SOLVERLAB
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 19 Nov 2021 11:11:38 +0000 (12:11 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Fri, 19 Nov 2021 11:11:38 +0000 (12:11 +0100)
products/SOLVERLAB.pyconf
products/compil_scripts/SOLVERLAB.sh

index 51499caf4c8c5f57e2eeed9bc7d82ead0f7ba90e..a03b23ff0ccb927024b80986615b33ddbec098af 100644 (file)
@@ -56,4 +56,5 @@ default_MPI :
         'MEDCOUPLING',
         'openmpi'
     ]
+    opt_depend : ['mpi4py']
 }
index f8ccdd763b563b03aeb3aff9b1f15ec85efeab16..9231ec0ad5650f0ce4e4da7ccc1e684e99575dbd 100755 (executable)
@@ -39,6 +39,12 @@ then
     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"
+    if [ -n "$MPI4PY_ROOT_DIR" ]
+    then
+       CMAKE_OPTIONS="${CMAKE_OPTIONS} -DMPI4PY_ROOT_DIR:PATH=${MPI4PY_ROOT_DIR}"
+    else
+        echo "WARNING: mpi4py environment variable not detected"
+    fi
 fi
 
 echo
@@ -71,4 +77,3 @@ fi
 
 echo
 echo "########## END"
-