]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Apply suggestions from code review
authorNils Schween <symbolschubser@riseup.net>
Tue, 14 Mar 2023 16:17:44 +0000 (17:17 +0100)
committerNils Schween <symbolschubser@riseup.net>
Wed, 15 Mar 2023 09:15:07 +0000 (10:15 +0100)
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
tests/grid/grid_tools_collect_periodic_faces_parallel_shared_tria.cc

index 9deb43e703d4a5ae4f5a15d0ccc9a236a8357165..1574fbd0a42a35f01f2e85159c75b91b26534392 100644 (file)
@@ -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<dim> p1{0., 0.};
     Point<dim> 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<dim> p1{0., 0., 0.};
     Point<dim> 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;
   }
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.