]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Get rid of create_triangulation_compatibility in the DB Mesh reader.
authorDavid Wells <drwells@email.unc.edu>
Wed, 14 Apr 2021 04:03:20 +0000 (00:03 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 15 Apr 2021 13:13:28 +0000 (09:13 -0400)
source/grid/grid_in.cc

index 5f82626d637e2a400a07e27b500737437ace6765..8ac1ef56b1829537415a27f4fb0280ce608c5422 100644 (file)
@@ -1319,7 +1319,7 @@ GridIn<dim, spacedim>::read_dbmesh(std::istream &in)
       cells.emplace_back();
       for (const unsigned int i : GeometryInfo<dim>::vertex_indices())
         {
-          in >> cells.back().vertices[i];
+          in >> cells.back().vertices[GeometryInfo<dim>::ucd_to_deal[i]];
 
           AssertThrow((cells.back().vertices[i] >= 1) &&
                         (static_cast<unsigned int>(cells.back().vertices[i]) <=
@@ -1357,9 +1357,10 @@ GridIn<dim, spacedim>::read_dbmesh(std::istream &in)
   GridTools::delete_unused_vertices(vertices, cells, subcelldata);
   // ...and cells
   GridReordering<dim, spacedim>::invert_all_cells_of_negative_grid(vertices,
-                                                                   cells);
-  GridReordering<dim, spacedim>::reorder_cells(cells);
-  tria->create_triangulation_compatibility(vertices, cells, subcelldata);
+                                                                   cells,
+                                                                   true);
+  GridReordering<dim, spacedim>::reorder_cells(cells, true);
+  tria->create_triangulation(vertices, cells, subcelldata);
 }
 
 

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.