From: David Wells Date: Sat, 24 Dec 2022 20:59:14 +0000 (-0500) Subject: isotropic refinement: convert to unsigned int. X-Git-Tag: v9.5.0-rc1~707^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387d6f4b4aed10211daccfa8391dc15ee5c4fa61;p=dealii.git isotropic refinement: convert to unsigned int. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 56999e4114..a8426a7abb 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -4164,7 +4164,8 @@ namespace internal else AssertThrow(false, ExcNotImplemented()); - std::vector new_vertices(n_new_vertices); + std::vector new_vertices(n_new_vertices, + numbers::invalid_unsigned_int); for (unsigned int vertex_no = 0; vertex_no < cell->n_vertices(); ++vertex_no) new_vertices[vertex_no] = cell->vertex_index(vertex_no); @@ -4226,9 +4227,9 @@ namespace internal const auto ref = [&](const unsigned int face_no, const unsigned int vertex_no) { if (cell->line(face_no)->child(0)->vertex_index(0) == - static_cast(new_vertices[vertex_no]) || + new_vertices[vertex_no] || cell->line(face_no)->child(0)->vertex_index(1) == - static_cast(new_vertices[vertex_no])) + new_vertices[vertex_no]) { new_lines[2 * face_no + 0] = cell->line(face_no)->child(0); new_lines[2 * face_no + 1] = cell->line(face_no)->child(1); @@ -4333,7 +4334,7 @@ namespace internal const unsigned int subcell_no, const unsigned int subcell_line_no) { if (new_lines[line_no]->vertex_index(1) != - static_cast(new_vertices[vertex_no])) + new_vertices[vertex_no]) triangulation.levels[subcells[subcell_no]->level()] ->face_orientations[subcells[subcell_no]->index() * GeometryInfo<2>::faces_per_cell +