From 50ffbd74ce6a84cb3c9c0a032610c3aaf67ff55b Mon Sep 17 00:00:00 2001 From: Nils Schween Date: Tue, 14 Mar 2023 17:17:44 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Daniel Arndt --- ...ools_collect_periodic_faces_parallel_shared_tria.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/grid/grid_tools_collect_periodic_faces_parallel_shared_tria.cc b/tests/grid/grid_tools_collect_periodic_faces_parallel_shared_tria.cc index 9deb43e703..1574fbd0a4 100644 --- a/tests/grid/grid_tools_collect_periodic_faces_parallel_shared_tria.cc +++ b/tests/grid/grid_tools_collect_periodic_faces_parallel_shared_tria.cc @@ -44,9 +44,7 @@ void test(MPI_Comm comm) { // Collect periodic faces in the x-direction GridTools::collect_periodic_faces(tria, 0, 1, 0, matched_pairs); // Check the size of the matched_pairs vector - if (matched_pairs.size() != 1) { - // throw error - } + deallog << matched_pairs.size() << std::endl; } else if constexpr (dim == 2) { Point p1{0., 0.}; Point p2{1., 1.}; @@ -54,8 +52,7 @@ void test(MPI_Comm comm) { GridGenerator::subdivided_hyper_rectangle(tria, repitions, p1, p2, true); GridTools::collect_periodic_faces(tria, 0, 1, 0, matched_pairs); - if (matched_pairs.size() != 16) { - } + deallog << matched_pairs.size() << std::endl; } else if constexpr (dim == 3) { Point p1{0., 0., 0.}; Point p2{1., 1., 1.}; @@ -64,8 +61,7 @@ void test(MPI_Comm comm) { GridGenerator::subdivided_hyper_rectangle(tria, repitions, p1, p2, true); GridTools::collect_periodic_faces(tria, 0, 1, 0, matched_pairs); - if (matched_pairs.size() != 256) { - } + deallog << matched_pairs.size() << std::endl; } } -- 2.39.5