From 357a471c8ae3bb7338d4d0ca826cb98876ef99c7 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 5 Nov 2021 23:22:21 +0100 Subject: [PATCH] Added MPI tests --- CoreFlows/examples/Python/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CoreFlows/examples/Python/CMakeLists.txt b/CoreFlows/examples/Python/CMakeLists.txt index fb1479e..b19a7e3 100755 --- a/CoreFlows/examples/Python/CMakeLists.txt +++ b/CoreFlows/examples/Python/CMakeLists.txt @@ -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) -- 2.39.2