]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #19079 apply topo-ii-vol sha 9db88dd to tag 1.3.0
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 17 Jan 2022 10:02:54 +0000 (11:02 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 17 Jan 2022 10:02:54 +0000 (11:02 +0100)
products/compil_scripts/topo2volmesh-1.3.0.sh

index db9c5709993cb28b3828dacee8eb6e4f8070ee96..442ce814a8aa3fbd82f7605870d58cb85b761a3e 100755 (executable)
@@ -10,19 +10,25 @@ then
     echo "WARNING: setting CC and CXX environment variables and target MPI wrapper"
     export CC=${MPI_ROOT_DIR}/bin/mpicc
     export CXX=${MPI_ROOT_DIR}/bin/mpicxx
+    CONFIGURE_FLAGS+=" --with-MPICXX=${MPI_ROOT_DIR}/bin/mpic++"
 else
-    if [[ $DIST_NAME == "CO" && $DIST_VERSION == "7" ]]; then
-       # check whether openmpi is installed
-       x=$(yum list installed |grep openmpi)
-       if [ $? -ne 0 ]; then
-           echo "ERROR: openMPI is not installed!"
-           exit 1
-       fi
-       export CC=/usr/lib64/openmpi/bin/mpicc
-       export CXX=/usr/lib64/openmpi/bin/mpicxx
-       export PATH=$PATH:/usr/lib64/openmpi/bin
-       CONFIGURE_FLAGS+=" --with-MPICXX=/usr/lib64/openmpi/bin/mpic++"
-    fi
+    LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION"
+    case $LINUX_DISTRIBUTION in
+        CO7|CO8|FD30|FD32|FD34)
+           # check whether openmpi is installed
+           x=$(yum list installed |grep openmpi)
+           if [ $? -ne 0 ]; then
+               echo "ERROR: openMPI is not installed!"
+               exit 1
+           fi
+           export CC=/usr/lib64/openmpi/bin/mpicc
+           export CXX=/usr/lib64/openmpi/bin/mpicxx
+           export PATH=$PATH:/usr/lib64/openmpi/bin
+           CONFIGURE_FLAGS+=" --with-MPICXX=/usr/lib64/openmpi/bin/mpic++"
+           ;;
+       *)
+           ;;
+    esac
 fi
 
 rm -rf $BUILD_DIR