From: Nabil Ghodbane Date: Fri, 19 Nov 2021 11:11:38 +0000 (+0100) Subject: spns #26662: add mpi4py dependency to SOLVERLAB X-Git-Tag: V9_8_0~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c54e105253c5c7fdb0e1e0391ce1e15ff18d4fd3;p=tools%2Fsat_salome.git spns #26662: add mpi4py dependency to SOLVERLAB --- diff --git a/products/SOLVERLAB.pyconf b/products/SOLVERLAB.pyconf index 51499ca..a03b23f 100644 --- a/products/SOLVERLAB.pyconf +++ b/products/SOLVERLAB.pyconf @@ -56,4 +56,5 @@ default_MPI : 'MEDCOUPLING', 'openmpi' ] + opt_depend : ['mpi4py'] } diff --git a/products/compil_scripts/SOLVERLAB.sh b/products/compil_scripts/SOLVERLAB.sh index f8ccdd7..9231ec0 100755 --- a/products/compil_scripts/SOLVERLAB.sh +++ b/products/compil_scripts/SOLVERLAB.sh @@ -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" -