From f7e515e5303dc14ca6e4e3b272a09eb56f09fe6b Mon Sep 17 00:00:00 2001 From: Nicolas OTTON Date: Thu, 20 Jan 2022 17:00:54 +0100 Subject: [PATCH] added MPI_ROOT_DIR in solverlab compil script --- products/compil_scripts/SOLVERLAB.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/products/compil_scripts/SOLVERLAB.sh b/products/compil_scripts/SOLVERLAB.sh index 9231ec0..baab925 100755 --- a/products/compil_scripts/SOLVERLAB.sh +++ b/products/compil_scripts/SOLVERLAB.sh @@ -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 -- 2.39.2