From 1d9ab19e5a85b8afae417e1c5b84128f709925f3 Mon Sep 17 00:00:00 2001 From: "David E. DeMarle" Date: Thu, 4 Oct 2018 14:47:56 -0400 Subject: [PATCH] fix a crash in surface filter on the output of ghostcell filter asymetric arrays lead to a crash. the asymetry was introduce in the previous commit. This change fixes the crash and I think it will keep the single cell case fixed too. --- .../vtkPUnstructuredGridGhostCellsGenerator.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Filters/ParallelGeometry/vtkPUnstructuredGridGhostCellsGenerator.cxx b/Filters/ParallelGeometry/vtkPUnstructuredGridGhostCellsGenerator.cxx index 604d33394d..147554bb83 100644 --- a/Filters/ParallelGeometry/vtkPUnstructuredGridGhostCellsGenerator.cxx +++ b/Filters/ParallelGeometry/vtkPUnstructuredGridGhostCellsGenerator.cxx @@ -837,7 +837,12 @@ void vtkPUnstructuredGridGhostCellsGenerator::ExtractAndSendGhostCells( extractCells->SetCellList(cellIdsList); extractCells->Update(); vtkUnstructuredGrid* extractGrid = extractCells->GetOutput(); - extractGrid->GetCellData()->RemoveArray("vtkOriginalCellIds"); + + //There might be case where the originalcellids needs to be removed + //but there are definitely cases where it shouldn't. + //So if you run into that case, think twice before you uncomment this + //next line and look carefully at paraview issue #18470 + //extractGrid->GetCellData()->RemoveArray("vtkOriginalCellIds"); // Send the extracted grid to the neighbor rank asynchronously if (vtkCommunicator::MarshalDataObject(extractGrid, c.SendBuffer)) -- GitLab