]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert one more place for GeometryInfo::face_indices(). 9477/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 Feb 2020 00:42:35 +0000 (17:42 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 5 Feb 2020 00:42:35 +0000 (17:42 -0700)
source/grid/grid_out.cc

index 8757b4c7238918134c313e5d85d86294ecf9dc8a..fad46bb079fa1f486b48d4a8577ac08127c8e8f6 100644 (file)
@@ -2381,7 +2381,8 @@ GridOut::write_svg(const Triangulation<2, 2> &tria, std::ostream &out) const
           // the additional boundary line
           if (svg_flags.boundary_line_thickness)
             {
-              for (unsigned int faceIndex = 0; faceIndex < 4; faceIndex++)
+              for (const unsigned int faceIndex :
+                   GeometryInfo<2>::face_indices())
                 {
                   if (cell->at_boundary(faceIndex))
                     {

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.