]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve an error message. 17783/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Oct 2024 16:32:59 +0000 (10:32 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 15 Oct 2024 16:32:59 +0000 (10:32 -0600)
source/grid/tria.cc

index 88b4d6cd4877a4a70d846043a196fb5959eefbd8..4a2d365c9c2d0c0b443daf7e5368cc7a4bbe628a 100644 (file)
@@ -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();
                     }() +
                     "."));

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.