]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix dim<spacedim case in create_triangulation with TriaDescription 10125/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 10 May 2020 16:58:35 +0000 (18:58 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 10 May 2020 16:58:35 +0000 (18:58 +0200)
source/grid/tria.cc

index e261c8b2b3a556dc5a7433186cb25e8949e11eed..ff02597068832d41d735674368da31f9546cb9e7 100644 (file)
@@ -10749,16 +10749,16 @@ Triangulation<dim, spacedim>::create_triangulation(
           {
             while (cell_info->id != cell->id().template to_binary<dim>())
               ++cell;
-            if (spacedim == 3)
+            if (dim == 3)
               for (unsigned int quad = 0;
-                   quad < GeometryInfo<spacedim>::quads_per_cell;
+                   quad < GeometryInfo<dim>::quads_per_cell;
                    ++quad)
                 cell->quad(quad)->set_manifold_id(
                   cell_info->manifold_quad_ids[quad]);
 
-            if (spacedim >= 2)
+            if (dim >= 2)
               for (unsigned int line = 0;
-                   line < GeometryInfo<spacedim>::lines_per_cell;
+                   line < GeometryInfo<dim>::lines_per_cell;
                    ++line)
                 cell->line(line)->set_manifold_id(
                   cell_info->manifold_line_ids[line]);

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.