Commit 1d9ab19e authored by David E. DeMarle's avatar David E. DeMarle

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.
parent 2982078d
...@@ -837,7 +837,12 @@ void vtkPUnstructuredGridGhostCellsGenerator::ExtractAndSendGhostCells( ...@@ -837,7 +837,12 @@ void vtkPUnstructuredGridGhostCellsGenerator::ExtractAndSendGhostCells(
extractCells->SetCellList(cellIdsList); extractCells->SetCellList(cellIdsList);
extractCells->Update(); extractCells->Update();
vtkUnstructuredGrid* extractGrid = extractCells->GetOutput(); 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 // Send the extracted grid to the neighbor rank asynchronously
if (vtkCommunicator::MarshalDataObject(extractGrid, c.SendBuffer)) if (vtkCommunicator::MarshalDataObject(extractGrid, c.SendBuffer))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment