From fa59ea654e1af39321bf1ad7b99bea09e7851d60 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 15 Oct 2024 10:32:59 -0600 Subject: [PATCH] Improve an error message. --- source/grid/tria.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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(); }() + ".")); -- 2.39.5