]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bug fix. Vertex numbers should be 1-based also in the write_ucd_faces function.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 19 Apr 2001 16:50:38 +0000 (16:50 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 19 Apr 2001 16:50:38 +0000 (16:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@4457 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_out.cc

index 8de92ec918b108d75e2e0961daa34e87e7cc126e..78fc311943ecafb85a6006a6f68e49b5cc75ed9c 100644 (file)
@@ -223,8 +223,9 @@ void GridOut::write_ucd_faces (const Triangulation<dim> &tria,
            default:
                  Assert (false, ExcNotImplemented());
          };
+                                      // note: vertex numbers are 1-base
        for (unsigned int vertex=0; vertex<GeometryInfo<dim>::vertices_per_face; ++vertex)
-         out << face->vertex_index(vertex) << ' ';
+         out << face->vertex_index(vertex)+1 << ' ';
        out << std::endl;
 
        ++index;

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.