we have a custom cxx reader plugin. When updating ParaView from v5.8.1 to v5.9.1, we ran some small tests to ensure that the plugin is still doing what its supposed to do.
I observed that when I load the same data file with v5.8.1 and v5.9.1 in parallel (in this case 2 processes) and compare the data in a SpreadSheetView the solution differs. The difference is that when using v5.9.1 the ghostCells are displayed such that the data occurs twice. Once as regular cell and once marked as vtkGhostType.
Any idea why cells marked as vtkGhostType appear in the SpreadSheetView for v5.9.1?
In the reader plugin, each process reads a subset of the data file and then creates a vtkUnstructuredGrid. At the process boundaries ghostCells are added and marked as DUPLICATE.
The vtkUnstructuredGrid is then added to a vtkMultiBlockDataSet, which is the output of the reader. The number of the vtkUnstructuredGrids created depends on the input data, in the present case there is only one vtkUnstructuredGrid.
This is very likely to be caused by the changes in vtkMultiBlockDataSet. vtkDataTabulator needs to make sure that ghosts are filtered out. I’ll create an issue.
I checked with my 5.8.1 build again and indeed the ghost data appears twice, too. Not sure what I did to overlook them before.
An option to hide ghost cell data, also when writing to csv, would be helpful. Written data files could be made independent of the number of processes used then.
Regarding the migration from vtkMultiBlockDataSet to vtkPartitionedDataSet mentioned, should the reader be updated in the near future?
vtkMultiBlockDataSet will still be supported for at least the next ParaView release, but updating to vtkPartitionedDataSetCollection when you can is recommended.