From d2f1977aa675e8a0675e718a3106fdc1040ee688 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 14 Apr 2021 00:03:20 -0400 Subject: [PATCH] Get rid of create_triangulation_compatibility in the DB Mesh reader. --- source/grid/grid_in.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 5f82626d63..8ac1ef56b1 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -1319,7 +1319,7 @@ GridIn::read_dbmesh(std::istream &in) cells.emplace_back(); for (const unsigned int i : GeometryInfo::vertex_indices()) { - in >> cells.back().vertices[i]; + in >> cells.back().vertices[GeometryInfo::ucd_to_deal[i]]; AssertThrow((cells.back().vertices[i] >= 1) && (static_cast(cells.back().vertices[i]) <= @@ -1357,9 +1357,10 @@ GridIn::read_dbmesh(std::istream &in) GridTools::delete_unused_vertices(vertices, cells, subcelldata); // ...and cells GridReordering::invert_all_cells_of_negative_grid(vertices, - cells); - GridReordering::reorder_cells(cells); - tria->create_triangulation_compatibility(vertices, cells, subcelldata); + cells, + true); + GridReordering::reorder_cells(cells, true); + tria->create_triangulation(vertices, cells, subcelldata); } -- 2.39.5