From: Wolfgang Bangerth Date: Tue, 15 Oct 2024 16:32:59 +0000 (-0600) Subject: Improve an error message. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17783%2Fhead;p=dealii.git Improve an error message. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 88b4d6cd48..4a2d365c9c 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -3539,11 +3539,16 @@ namespace internal s += std::to_string(v) + ','; return s; }() + - " which are located at positions " + + " which are located at coordinates " + [vertex_locations, subcell_object]() { std::ostringstream s; - for (const auto v : subcell_object->vertices) - s << '(' << vertex_locations[v] << ')'; + for (unsigned int i = 0; + i < subcell_object->vertices.size(); + ++i) + s << '(' + << vertex_locations[subcell_object->vertices[i]] + << (i != subcell_object->vertices.size() - 1 ? "), " : + ")"); return s.str(); }() + "."));