From 91fca49ccd7ed4abfe208db0d979ced3e08af364 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Tue, 28 Jan 2020 10:03:15 +0100 Subject: [PATCH] Also run harmonicmaptest of 4 processes --- test/CMakeLists.txt | 8 +++++++- test/harmonicmaptest.cc | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 78251121..e2837573 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -4,7 +4,6 @@ set(TESTS cosseratenergytest frameinvariancetest harmonicenergytest - harmonicmaptest localgeodesicfefunctiontest localgfetestfunctiontest localprojectedfefunctiontest @@ -21,4 +20,11 @@ foreach(_test ${TESTS}) target_compile_options(${_test} PRIVATE -g) endforeach() +# Run distributed tests +dune_add_test(SOURCES harmonicmaptest.cc + MPI_RANKS 1 4 + TIMEOUT 600 + CMAKE_GUARD MPI_FOUND) + +# Copy the example grid used for testing into the build dir file(COPY grids/irregular-square.msh DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/grids) diff --git a/test/harmonicmaptest.cc b/test/harmonicmaptest.cc index 996588be..2d409e2c 100644 --- a/test/harmonicmaptest.cc +++ b/test/harmonicmaptest.cc @@ -70,6 +70,8 @@ int main (int argc, char *argv[]) grid->globalRefine(numLevels-1); + grid->loadBalance(); + using GridView = GridType::LeafGridView; GridView gridView = grid->leafGridView(); -- GitLab