[Paraview] Reading multiblock pvtr files

Keith Bennett keith at mcs.st-and.ac.uk
Wed, 19 May 2004 17:26:12 +0100


Hi All,

This is my first post to the list. Sorry if it's a dumb question.

I've been trying to read in a multi-part rectilinear grid but I'm
not having much success. Reading and writing the files works fine
using VTK but when I try it with paraview I get the following error:

ErrorMessage
# Error or warning: There was a VTK Error in file: /home/kitware/ParaViewReleaseRoot/paraview-1.4.1/VTK/Common/vtkTableExtentTranslator.cxx (99)
 Cannot change the number of pieces from 2 to 1
ErrorMessage end

My test files are as follows:

out.pvtr:
<?xml version="1.0"?>
<VTKFile type="PRectilinearGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <PRectilinearGrid WholeExtent="0 1 0 1 0 2" GhostLevel="0">
    <PCoordinates>
      <PDataArray type="Float32"/>
      <PDataArray type="Float32"/>
      <PDataArray type="Float32"/>
    </PCoordinates>
    <Piece Extent="0 1 0 1 0 1" Source="out_0.vtr"/>
    <Piece Extent="0 1 0 1 1 2" Source="out_1.vtr"/>
  </PRectilinearGrid>
</VTKFile>

out_0.vtr:
<?xml version="1.0"?>
<VTKFile type="RectilinearGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <RectilinearGrid WholeExtent="0 1 0 1 0 1">
  <Piece Extent="0 1 0 1 0 1">
    <PointData>
    </PointData>
    <CellData>
    </CellData>
    <Coordinates>
      <DataArray type="Float32" format="ascii">
        0 1
      </DataArray>
      <DataArray type="Float32" format="ascii">
        0 1
      </DataArray>
      <DataArray type="Float32" format="ascii">
        0 0.5
      </DataArray>
    </Coordinates>
  </Piece>
  </RectilinearGrid>
</VTKFile>

out_2.vtr:
<?xml version="1.0"?>
<VTKFile type="RectilinearGrid" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor">
  <RectilinearGrid WholeExtent="0 1 0 1 1 2">
  <Piece Extent="0 1 0 1 1 2">
    <PointData>
    </PointData>
    <CellData>
    </CellData>
    <Coordinates>
      <DataArray type="Float32" format="ascii">
        0 1
      </DataArray>
      <DataArray type="Float32" format="ascii">
        0 1
      </DataArray>
      <DataArray type="Float32" format="ascii">
        0.5 1
      </DataArray>
    </Coordinates>
  </Piece>
  </RectilinearGrid>
</VTKFile>

Can anyone tell me where I'm going wrong? Or is it a bug?

Thanks,

Keith.