[Paraview] unable to Xdmf file

Jerry Clarke clarke at arl.army.mil
Mon May 21 08:44:03 EDT 2007


Dinesh Kumar wrote:
> Hi,
> 
> I have created this Xdmf output from my program. But when I try to load
> it to paraview, it crashes with a segmentation fault. Can someone please
> help me with this one?
> 
> best regards
> --dinesh

Dinesh,

Ok, this on stumped the band for about 1/2 an hour this morning!!

Looks like a bug. You're values are left justified, if you add a
space before the values it works :

-------------------------------------------------------------------
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM " Xdmf.dtd">
<Xdmf>
    <Domain>
       <Grid Name="inclined">
          <Topology Type="QUADRILATERAL" Dimensions="16">
              <DataStructure Name="Connections" DataType="Int" Precision="4"
                 Dimensions="16 4" Format="XML">
  0 1 2 3
  3 2 4 5
  2 6 7 4
  1 8 6 2
  8 9 10 6
  9 11 12 10
  10 12 13 14
  6 10 14 7
  7 14 15 16
  14 13 17 15
  15 17 18 19
  16 15 19 20
  21 16 20 22
  4 7 16 21
  5 4 21 23
  23 21 22 24
              </DataStructure>
          </Topology>
          <Geometry Type="XYZ">
              <DataStructure Name="Coordinates" DataType="Float" 
Precision="8"
                 Dimensions="25 3" Format="XML">
  0.16384 0.16384 0
  0.58192 0.16384 0
  0.58192 0.58192 0
  0.16384 0.58192 0
  0.58192 1 0
  0.16384 1 0
  1 0.58192 0
  1 1 0
  1 0.16384 0
  1.41808 0.16384 0
  1.41808 0.58192 0
  1.83616 0.16384 0
  1.83616 0.58192 0
  1.83616 1 0
  1.41808 1 0
  1.41808 1.41808 0
  1 1.41808 0
  1.83616 1.41808 0
  1.83616 1.83616 0
  1.41808 1.83616 0
  1 1.83616 0
  0.58192 1.41808 0
  0.58192 1.83616 0
  0.16384 1.41808 0
  0.16384 1.83616 0
              </DataStructure>
	</Geometry>
          <Attribute Type="Scalar" Center="Cell" Name="Pile Height">
               <DataStructure DataType="Float" Precision="8"
                 Dimensions="16 1" Format="XML">
  0
  0.00482034
  0.196659
  0.00482034
  0.00771739
  0
  0.0244406
  0.244261
  0.302793
  0.0328022
  0
  0.0328022
  0.0244406
  0.244261
  0.00771739
  0
              </DataStructure>
          </Attribute>
          <Attribute Type="Scalar" Center="Cell" Name="X_Momentum">
              <DataStructure DataType="Float" Precision="8"
                 Dimensions="16 1" Format="XML">
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
              </DataStructure>
          </Attribute>
          <Attribute Type="Scalar" Center="Cell" Name="Y_Momentum">
              <DataStructure DataType="Float" Precision="8"
                 Dimensions="16 1" Format="XML">
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
  0
              </DataStructure>
          </Attribute>
       </Grid>
    </Domain>
  </Xdmf>


More information about the ParaView mailing list