Skip to content
Snippets Groups Projects
Commit 8e2e11ab authored by wenqing's avatar wenqing
Browse files

[TEST] Added a test for the parallel FEM and also its input data.

parent b0787687
No related branches found
No related tags found
No related merge requests found
......@@ -34,3 +34,11 @@ ExternalData_Add_Test(
NAME NodePartitionedMeshTestBinary
COMMAND "mpirun" ${MPITestParameters}
)
set(FilePath "DATA{${ExternalData_SOURCE_ROOT}/EllipticPETSc/,REGEX:.*}")
set(MPITestParameters -np 3 "${PROJECT_BINARY_DIR}/bin/ogs" "${FilePath}/quad_20x10_GroundWaterFlow.prj" -- -gw_ksp_type bcgs -gw_pc_type bjacobi -gw_ksp_atol 1.e-10)
ExternalData_Add_Test(
data
NAME ParallelFEM_GroundWaterFlow
COMMAND "mpirun" ${MPITestParameters} ${SolverType}
)
......@@ -76,8 +76,9 @@ if(DEFINED ENV{CI})
set(TESTRUNNER_ADDITIONAL_ARGUMENTS ${TESTRUNNER_ADDITIONAL_ARGUMENTS} --gtest_shuffle --gtest_repeat=3)
endif()
if(OGS_USE_PETSC)
set(TEST_FILTER_MPI --gtest_filter=-MPITest*:*Assembler*:*MeshSubsets*:*PointVec*:*InsertZeroPointsInGrid*)
add_custom_target(tests
mpirun -np 1 $<TARGET_FILE:testrunner> ${TESTRUNNER_ADDITIONAL_ARGUMENTS} --gtest_filter=-MPITest*
mpirun -np 1 $<TARGET_FILE:testrunner> ${TESTRUNNER_ADDITIONAL_ARGUMENTS} ${TEST_FILTER_MPI}
DEPENDS testrunner
)
add_custom_target(tests_mpi
......
94783db968a4fbfb8f79a7896775b185
b8f1fcdee506243dfbd501cdaef67ecc
ae85212f20fd03039536fc96a347ba26
c2599030cc0e415f0930dd20971a4e9b
5081cdb210f9ee8643378914eb69da64
07a029d1604f0b2a0b441dbf2a3ed383
1e7992425efeb712d1b7c497396f3cc3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment