From: wolf Date: Mon, 23 Apr 2001 15:31:56 +0000 (+0000) Subject: Bug fix. Vertex numbers should be 1-based also in the write_ucd_faces function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dba5789d676adee392d700570038c2a8e8e5ae08;p=dealii-svn.git Bug fix. Vertex numbers should be 1-based also in the write_ucd_faces function. git-svn-id: https://svn.dealii.org/branches/Branch-3-1@4466 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_out.cc b/deal.II/deal.II/source/grid/grid_out.cc index 9d9d1d85d5..dc61ceb10e 100644 --- a/deal.II/deal.II/source/grid/grid_out.cc +++ b/deal.II/deal.II/source/grid/grid_out.cc @@ -214,8 +214,9 @@ void GridOut::write_ucd_faces (const Triangulation &tria, default: Assert (false, ExcNotImplemented()); }; + // note: vertex numbers are 1-base for (unsigned int vertex=0; vertex::vertices_per_face; ++vertex) - out << face->vertex_index(vertex) << ' '; + out << face->vertex_index(vertex)+1 << ' '; out << std::endl; ++index;