[Paraview] Bug Reading pvti Files?

Kent Eschenberg eschenbe at psc.edu
Fri Jun 27 09:53:43 EDT 2008


Not sure if this is a bug. A new program of mine creates a pvti file that reference two vti files in the same directory. No errors are produced when PV reads the pvti file but the 2nd vti file seems to be ignored.

In the attached image the top object is what the pvti reader produces. A slice through just the right half has a min,max of 0,0.

The middle object results when only the "left" vti file is read; and the bottom when only the "right" vti file is read. Obviously the "right" file contains valid numbers.

The files without the binary parts are below. I hope someone can spot some simple mistake I've made.

OS: CentOS 5, 32-bit
PV: CVS downloaded June 25 at 4:42pm
Compiler: gcc 4.1.2
CMake: 2.4.6

This is a major problem for a project here and so all advice will be very much appreciated!

Kent
Pittsburgh Supercomputing Center

======
The pvti file:

<VTKFile type="PImageData" version="0.1" byte_order="LittleEndian">
  <PImageData
    WholeExtent="0 255 0 127 0 127"
    GhostLevel="0"
    Origin="0.437746063 0.437746063 0.437746063"
    Spacing="0.000488251 0.000488251 0.000488251"
>
    <PPointData Scalars="Density">
      <PDataArray type="Float32" Name="Density"/>
    </PPointData>
    <Piece Extent="0 128 0 127 0 127" Source="ts_512L0M6_0025.grid2186.vti"/>
    <Piece Extent="128 255 0 127 0 127" Source="ts_512L0M6_0025.grid2185.vti"/>
  </PImageData>
</VTKFile>

======
The "left" file ts_512L0M6_0025.grid2186.vti:

<VTKFile type="ImageData" version="0.1">
  <ImageData
    WholeExtent="0 255 0 127 0 127"
    Origin="0.437746063 0.437746063 0.437746063"
    Spacing="0.000488251 0.000488251 0.000488251"
  >
    <Piece Extent="0 128 0 127 0 127">
      <PointData Scalars="Density">
        <DataArray
           Name="Density"
           type="Float32"
           NumberOfComponents="1"
           format="appended"
           offset="0"
        />
      </PointData>
    </Piece>
  </ImageData>
  <AppendedData encoding="raw">
  ...
  </AppendedData
</VTKFile>

======
The "right" file ts_512L0M6_0025.grid2185.vti:

<VTKFile type="ImageData" version="0.1">
  <ImageData
    WholeExtent="0 255 0 127 0 127"
    Origin="0.437746063 0.437746063 0.437746063"
    Spacing="0.000488251 0.000488251 0.000488251"
  >
    <Piece Extent="128 255 0 127 0 127">
      <PointData Scalars="Density">
        <DataArray
           Name="Density"
           type="Float32"
           NumberOfComponents="1"
           format="appended"
           offset="0"
        />
      </PointData>
    </Piece>
  </ImageData>
  <AppendedData encoding="raw">
  ...
  </AppendedData
</VTKFile>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvti_test.png
Type: image/png
Size: 7694 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080627/d86140d6/attachment-0001.png>


More information about the ParaView mailing list