[vtkusers] Problems writting an unstructured grid to Exodus II

David Thompson dcthomp at sandia.gov
Fri Mar 27 16:48:24 EDT 2009


> Hi there
>   I want to write an unstructured grid of triangles to an Exodus II file
> using vtkExodusIIWriter. The Python code looks somehow like this
> 
> ug = vtk.vtkUnstructuredGrid()
> .....setup grid.....
> 
> writer = vtk.vtkExodusIIWriter()
> writer.SetFileName("mesh.e")
> writer.SetInput(ug)
> writer.Write()
> 
> Unfortunately the code exits with a segmentation fault. The grid
> contains no attribute data, only the mesh.
> Has anyone an idea whats going wrong here?
Hi Eugen,

Are you using the CVS trunk? Nathan recently (3 days ago) found and
fixed a bug when writing out files with no point/cell data. That might
be the source of your trouble. If that's not it, please file a bug
report with a way to reproduce the problem or a stack trace.

	David





More information about the vtkusers mailing list