Skip to content

Fix crash when generating cuts with DIY on non-3D data

vtkDIYKdTreeUtilities::GenerateCuts was crashing with non-3D data in the following cases:

  • if the data is 2D and distributed on more than 4 ranks
  • if the data is 1D and distributed on more than 2 ranks

vtkDIYKdTreeUtilities::GenerateCuts use internally a 3D kd-tree to compute the cuts.
This was crashing if the data bounding box had side(s) with zero-thickness, so now we ensure it is not the case.

This also fixes the related ParaView crash mentioned here: paraview/paraview#21396

Edited by Thomas Galland

Merge request reports