From 3ec56d30c03373154c93d882432386140efe4ec6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 11 Dec 2023 23:47:27 -0700 Subject: [PATCH] Make control flow easier to read. --- source/grid/grid_generator.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 1dadc41314..5ab4247afd 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -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); } -- 2.39.5