<p>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.</p><p>The count should be calculated as in the attached patch.</p><p>Peter Wainwright</p><p> </p><BR>