Xdmf2Reader: Unknown Attribute Type None, number of components wrong
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I've noticed some oddities with the vtkXdmfReader. The following script
import vtk
reader = vtk.vtkXdmfReader()
reader.SetFileName('test.xmf')
reader.Update()
grid = reader.GetOutputDataObject(0)
point_data = grid.GetPointData()
for k in range(point_data.GetNumberOfArrays()):
array = point_data.GetArray(k)
print(array)
produces
XDMF Error in
/build/vtk6-01UJ_h/vtk6-7.1.0~20151212165543/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx
line 183 (Unknown Attribute Type None)
on GetPointData()
. This is with a simple test file, attached.
The supposed "Error" doesn't stop the execution though. However, for the point data, one gets
NumberOfComponents: 1
while it is actually 2 (as can be seen by inspecting the file).