]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Added MPI tests
authormichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 22:22:21 +0000 (23:22 +0100)
committermichael <michael@localhost.localdomain>
Fri, 5 Nov 2021 22:22:21 +0000 (23:22 +0100)
CoreFlows/examples/Python/CMakeLists.txt

index fb1479e6717000b3ff9c8c16b46198b8615288e8..b19a7e32d11f789a433e3360cc6043d96b1b875f 100755 (executable)
@@ -135,6 +135,14 @@ CreatePythonTest(StationaryDiffusionEquation/StationaryDiffusionEquation_3DEF_Ro
 CreatePythonTest(StationaryDiffusionEquation/StationaryDiffusionEquation_3DVF_RoomCooling_StructuredCubes.py)
 CreatePythonTest(StationaryDiffusionEquation/StationaryDiffusionEquation_3DVF_RoomCooling_UnstructuredTetras.py)
 
+if( SOLVERLAB_WITH_MPI )
+  add_test(NAME MPI4PY_2Procs                                        COMMAND "${MPIEXEC}" "-n" "2" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/MPI4PY/testMPI4PY.py")     
+  add_test(NAME StationaryDiffusion_TwoIndependentSimulations_2Procs COMMAND "${MPIEXEC}" "-n" "2" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/MPI4PY/testTwoSimulations.py")     
+  add_test(NAME SendRecvMEDCouplingFieldSameMesh_2Procs              COMMAND "${MPIEXEC}" "-n" "2" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/MPI4PY/testSendRecvFieldSameMesh.py")     
+  add_test(NAME SendRecvMEDCouplingFieldDifferentMeshes_2Procs       COMMAND "${MPIEXEC}" "-n" "2" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/MPI4PY/testSendRecvFieldDifferentMeshes.py")     
+  add_test(NAME SendRecvMEDCouplingFieldSubComm_3Procs               COMMAND "${MPIEXEC}" "-n" "3" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/MPI4PY/testSendRecvFieldSubComm.py")     
+endif( SOLVERLAB_WITH_MPI )
+
 ############# python convergence tests
 
 function(CreatePythonConvergenceTest model convergenceTest pythonSolver MESHES_AND_PICTURES_PATH)