From: michael Date: Fri, 5 Nov 2021 22:22:21 +0000 (+0100) Subject: Added MPI tests X-Git-Tag: V9_8_0~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=357a471c8ae3bb7338d4d0ca826cb98876ef99c7;p=tools%2Fsolverlab.git Added MPI tests --- 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)