In GModel::writeVTK, I think the number of elements is not counted correctly. I have found that numElements includes "elements" (in fact vertices) for which getTypeForVTK() is zero and which therefore are not written. VTK's vtkUnstructuredGridReader objects to this when reading CELLS or CELL_TYPES, since the number of lines following is less than the count.
The count should be calculated as in the attached patch.
Peter Wainwright
gmsh2.2.4vtk.patch
Description: Binary data
_______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
