]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make control flow easier to read.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 12 Dec 2023 06:47:27 +0000 (23:47 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 12 Dec 2023 23:44:30 +0000 (16:44 -0700)
source/grid/grid_generator.cc

index 1dadc41314ab78e6402b97da5d97f245c4919fa3..5ab4247afdb05bb64d0ccc9a64650c74328d65ab 100644 (file)
@@ -6599,16 +6599,17 @@ namespace GridGenerator
         result.copy_triangulation(triangulation_2);
         return;
       }
-    if (triangulation_2.n_cells() == 0)
+    else if (triangulation_2.n_cells() == 0)
       {
         result.copy_triangulation(triangulation_1);
         return;
       }
-    merge_triangulations({&triangulation_1, &triangulation_2},
-                         result,
-                         duplicated_vertex_tolerance,
-                         copy_manifold_ids,
-                         copy_boundary_ids);
+    else
+      merge_triangulations({&triangulation_1, &triangulation_2},
+                           result,
+                           duplicated_vertex_tolerance,
+                           copy_manifold_ids,
+                           copy_boundary_ids);
   }
 
 

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.