[vtkusers] Different behavior of vtkXMLPUnstructuredGridWriter in VTK 7.1

John Peterson jwpeterson at gmail.com
Mon Dec 5 12:50:51 EST 2016


Hi,

It appears that the behavior of the vtkXMLPUnstructuredGridWriter has
changed in VTK 7.1.  Can anyone comment on this?  I am using the 7.1.0
tarball downloaded from:

http://www.vtk.org/files/release/7.1/VTK-7.1.0.tar.gz

We have a test case in the MOOSE library (
https://github.com/idaholab/moose/tree/devel/test/tests/outputs/vtk) which
demonstrates the problem, but I can also work on creating a standalone test
code which demonstrates this issue if necessary.

In versions of VTK prior to 7.1 this test, which runs on two processors,
writes the following .pvtu file: (note the two "Piece Source" lines
corresponding to each processor's part):

<?xml version="1.0"?>
<VTKFile type="PUnstructuredGrid" version="0.1" byte_order="LittleEndian"
header_type="UInt32" compressor="vtkZLibDataCompressor">
  <PUnstructuredGrid GhostLevel="1">
    <PPointData>
      <PDataArray type="Float64" Name="aux"/>
      <PDataArray type="Float64" Name="u"/>
    </PPointData>
    <PCellData>
      <PDataArray type="Int32" Name="libmesh_elem_id"/>
      <PDataArray type="Int32" Name="subdomain_id"/>
      <PDataArray type="Int32" Name="processor_id"/>
    </PCellData>
    <PPoints>
      <PDataArray type="Float64" Name="Points" NumberOfComponents="3"/>
    </PPoints>
    <Piece Source="vtk_diff_serial_mesh_parallel_out_005_0.vtu"/>
    <Piece Source="vtk_diff_serial_mesh_parallel_out_005_1.vtu"/>
  </PUnstructuredGrid>
</VTKFile>


While in version 7.1, the same test now writes (note the single "Piece
Source" line)

<?xml version="1.0"?>
<VTKFile type="PUnstructuredGrid" version="0.1" byte_order="LittleEndian"
header_type="UInt32" compressor="vtkZLibDataCompressor">
  <PUnstructuredGrid GhostLevel="1">
    <PPointData>
      <PDataArray type="Float64" Name="aux"/>
      <PDataArray type="Float64" Name="u"/>
    </PPointData>
    <PCellData>
      <PDataArray type="Int32" Name="libmesh_elem_id"/>
      <PDataArray type="Int32" Name="subdomain_id"/>
      <PDataArray type="Int32" Name="processor_id"/>
    </PCellData>
    <PPoints>
      <PDataArray type="Float64" Name="Points" NumberOfComponents="3"/>
    </PPoints>
    <Piece Source="vtk_diff_serial_mesh_parallel_out_005_0.vtu"/>
  </PUnstructuredGrid>
</VTKFile>


The file opens fine in Paraview, but the part of the mesh corresponding to
processor 1 is missing. We haven't changed anything substantial in our
application code that calls the writer.

Thanks,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161205/334952b8/attachment.html>


More information about the vtkusers mailing list