Skip to content

vtkXMLPMultiBlockDataWriter: fix when writing vtkMultiPieceDataSet blocks

When a vtkMultiBlockDataSet contains a vtkMultiPieceDataSet, vtkXMLPMultiBlockDataWriter will split each piece into another vtkMultiPieceDataSet. As a result, the written XML data file will contain nested "Piece" elements. Since vtkMultiPieceDataSets are not hierarchical, this description is invalid.

To fix, save the top-level vtkMultiPieceDataSet as a "Block" element instead. Leaf blocks will still be saved as vtkMultiPieceDataSets where the pieces are split across ranks.

Modified test to exercise writing out a vtkMultiPieceDataSet block.

Addresses paraview/paraview#19658 (closed)

Backport: paraview/release

Edited by Cory Quammen

Merge request reports

Loading