[vtkusers] Different behavior of vtkXMLPUnstructuredGridWriter in VTK 7.1

Andy Bauer andy.bauer at kitware.com
Mon Dec 5 13:32:48 EST 2016


Hi,

Can you verify that there are indeed points in
vtk_diff_serial_mesh_parallel_out_005_1.vtu
in the older version of VTK? The PXML writers were changed such that they
wouldn't write out data files for data set pieces that didn't have any
points.

Cheers,
Andy

On Mon, Dec 5, 2016 at 12:50 PM, John Peterson <jwpeterson at gmail.com> wrote:

> 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
>
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161205/71641ede/attachment.html>


More information about the vtkusers mailing list