]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
SALOME 9.6.0 + MPI - SOLVERLAB compilation issue
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 28 Oct 2020 10:23:48 +0000 (11:23 +0100)
committernghodban <Nabil.Ghodbane@c-s.fr>
Mon, 30 Nov 2020 07:17:34 +0000 (08:17 +0100)
applications/SALOME-9.6.0-MPI.pyconf
products/SOLVERLAB.pyconf
products/compil_scripts/SOLVERLAB.sh

index a622a512e5825b81a1c7d15a4ab13dc94b47f104..729a54c63f5204f2c46d13ff7ad2fb65cbd8f7b7 100644 (file)
@@ -132,7 +132,7 @@ APPLICATION :
         'JOBMANAGER' : {section : "default_MPI", verbose: 'yes'}
         'YACS'
         'YACSGEN'
-        'SOLVERLAB'
+        'SOLVERLAB' : {section : 'default_MPI', hpc: 'yes'}
         'DOCUMENTATION'
         'SAMPLES'
         'COMPONENT'
index b4d62f0ab5c8ad3dee753f26fdc99e87060bcb8f..2aec4793b8798bc3f3ebddafdb3de24e3f0ab5f5 100644 (file)
@@ -29,4 +29,25 @@ default :
     source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
     build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
     nb_proc : 1
+    properties:
+    {
+        is_SALOME_module : "yes"
+        incremental : "yes"
+    }
 }
+
+default_MPI :
+{
+    depend :
+    [
+        'hdf5',
+        'matplotlib',
+        'medfile',
+        'numpy',
+        'ParaView',
+        'petsc',
+        'Python',
+        'MEDCOUPLING',
+        'openmpi'
+    ]
+}
\ No newline at end of file
index e297f233ddd5f71d8748641582ad75813809b1cc..798809997520d089d11cc305c6beeaedb22ee85c 100755 (executable)
@@ -18,6 +18,12 @@ CMAKE_OPTIONS=$CMAKE_OPTIONS" -DPETSC_DIR=${PETSC_ROOT_DIR}"
 CMAKE_OPTIONS=$CMAKE_OPTIONS" -DMEDCOUPLING_ROOT_DIR=${MEDCOUPLING_ROOT_DIR}"
 CMAKE_OPTIONS=$CMAKE_OPTIONS" -DCMAKE_INSTALL_PREFIX=${PRODUCT_INSTALL}"
 
+if [ -n "$SAT_HPC" ]
+then
+    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"
+fi
+
 echo
 echo "*** cmake "$CMAKE_OPTIONS
 cmake $CMAKE_OPTIONS $SOURCE_DIR