From c54e105253c5c7fdb0e1e0391ce1e15ff18d4fd3 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Fri, 19 Nov 2021 12:11:38 +0100 Subject: [PATCH] spns #26662: add mpi4py dependency to SOLVERLAB --- products/SOLVERLAB.pyconf | 1 + products/compil_scripts/SOLVERLAB.sh | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) 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" - -- 2.39.2