Commit 5de51292 authored by Andrew Bauer's avatar Andrew Bauer Committed by Kitware Robot

Merge topic 'ghost_cell_generator_bug_fix'

771fc75d Fix issue with single cell for ghost cells generator.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: David E. DeMarle's avatarDavid E. DeMarle <dave.demarle@kitware.com>
Merge-request: !4528
parents a01fc64a 771fc75d
......@@ -837,6 +837,7 @@ void vtkPUnstructuredGridGhostCellsGenerator::ExtractAndSendGhostCells(
extractCells->SetCellList(cellIdsList);
extractCells->Update();
vtkUnstructuredGrid* extractGrid = extractCells->GetOutput();
extractGrid->GetCellData()->RemoveArray("vtkOriginalCellIds");
// Send the extracted grid to the neighbor rank asynchronously
if (vtkCommunicator::MarshalDataObject(extractGrid, c.SendBuffer))
......@@ -1015,7 +1016,10 @@ void vtkPUnstructuredGridGhostCellsGenerator::ReceiveAndMergeGhostCells(int ghos
// Then merge ghost grid from neighbor ranks
for (std::size_t i = 0; i < neighborGrids.size(); i++)
{
mergeCells->MergeDataSet(neighborGrids[i]);
if (neighborGrids[i]->GetNumberOfCells())
{
mergeCells->MergeDataSet(neighborGrids[i]);
}
neighborGrids[i]->Delete();
}
......
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