Skip to content

Fix vtkPDistributedDataFilter for numCells < numProcs

Fix #17577 (closed)

When numCells < numProcs, the method TestFixTooFewInputFiles duplicates some cells on other procs. Then the filter sends these duplicated cells back to their original proc, but the duplicated cells are not merged for 2 reasons:

  • There is no global cell ids to detect duplication
  • The filter uses DuplicateCellsNo so no merging is applied

So when the method TestFixTooFewInputFiles duplicates some cells, now we compute the global ids (before duplication) and we add a variable duplicateCells which tells to the filter to apply merging. This MR also add a test for this special case.

Edited by Tristan Coulange

Merge request reports