only remove blanked cells if the number of cells matches the ghost array

This commit is contained in:
Roxana Bujack 2023-11-07 11:56:37 -07:00
parent 2955b834e7
commit bc0447ec00

@ -704,7 +704,8 @@ public:
}
// removed blanked triangles
if (ghostField.GetNumberOfValues() > 0)
// TODO: this currently excludes unstructured data that was triangulated
if (ghostField.GetNumberOfValues() == outputTriangles)
{
vtkm::cont::ArrayHandle<vtkm::Id4> nonGhostTriangles;
nonGhostTriangles.Allocate(outputTriangles);