|
hi
all. having some trouble getting paraview to talk to my xdmf files.
seems to work fine when using the XYZ geometry type, but things fall
apart when i attempted to use the XY geometry. for instance the
following works fine:
<?xml version="1.0" ?> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> <Xdmf> <Domain> <Grid Name="TestGrid"> <Topology Type="Hexahedron" NumberOfElements="2" > <DataItem Format="XML" DataType="Float" Dimensions="2 8"> 0 1 7 6 3 4 10 9 1 2 8 7 4 5 11 10 </DataItem> </Topology> <Geometry Type="XYZ"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="12 3"> 0.0 0.0 1.0 1.0 0.0 1.0 3.0 0.0 2.0 0.0 1.0 1.0 1.0 1.0 1.0 3.0 2.0 2.0 0.0 0.0 -1.0 1.0 0.0 -1.0 3.0 0.0 -2.0 0.0 1.0 -1.0 1.0 1.0 -1.0 3.0 2.0 -2.0 </DataItem> </Geometry> <Attribute Name="NodeValues" Center="Node"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="4 3" > 100 200 300 300 400 500 300 400 500 500 600 700 </DataItem> </Attribute> <Attribute Name="CellValues" Center="Cell"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="2" > 100 200 </DataItem> </Attribute> </Grid> </Domain> </Xdmf> but this does not work: <?xml version="1.0" ?> <!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []> <Xdmf> <Domain> <Grid Name="TestGrid"> <Topology Type="Quadrilateral" NumberOfElements="2" > <DataItem Format="XML" DataType="Int" Dimensions="2 4"> 0 1 3 4 1 2 4 5 </DataItem> </Topology> <Geometry Type="XY"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="6 2"> 0.0 0.0 1.0 0.0 3.0 0.0 0.0 1.0 1.0 1.0 3.0 2.0 </DataItem> </Geometry> <Attribute Name="NodeValues" Center="Node"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="2 3" > 100 200 300 300 400 500 </DataItem> </Attribute> <Attribute Name="CellValues" Center="Cell"> <DataItem Format="XML" DataType="Float" Precision="8" Dimensions="2" > 100 200 </DataItem> </Attribute> </Grid> </Domain> </Xdmf> this fails with the message: XDMF Error in
/home/berk/Work/ReleaseBuilds/ParaView3/Utilities/Xdmf2/libsrc/XdmfHDF.cxx
line 499 (Source and Target Spaces specify different
sizes) i find this behavior on linux (ubuntu) for both the bleeding edge cvs (actually on the cvs its was occuring for a xdmf/hdf5 file but i haven't had a chance to test it with this exclusively xml file) and the binary tarball. |
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
