]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bug fix. Vertex numbers should be 1-based also in the write_ucd_faces function.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Apr 2001 15:31:56 +0000 (15:31 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Apr 2001 15:31:56 +0000 (15:31 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-1@4466 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 9d9d1d85d56cc823087b1ecb3d48fa9ee3196a0e..dc61ceb10e898e107fafad0f052af9d297ce0a48 100644 (file)
@@ -214,8 +214,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.