MCPcopy Create free account
hub / github.com/Kitware/VTK / CanSynchronize

Method CanSynchronize

Filters/ParallelDIY2/vtkGhostCellsGenerator.cxx:294–305  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

292
293//----------------------------------------------------------------------------
294bool vtkGhostCellsGenerator::CanSynchronize(
295 vtkDataObject* input, bool& canSyncCell, bool& canSyncPoint)
296{
297 vtkDataSetAttributes* inputCell = input->GetAttributes(vtkDataObject::AttributeTypes::CELL);
298 vtkDataSetAttributes* inputPoint = input->GetAttributes(vtkDataObject::AttributeTypes::POINT);
299 canSyncCell = inputCell && inputCell->GetGhostArray() && inputCell->GetGlobalIds() &&
300 inputCell->GetProcessIds();
301 canSyncPoint = inputPoint && inputPoint->GetGhostArray() && inputPoint->GetGlobalIds() &&
302 inputPoint->GetProcessIds();
303
304 return canSyncCell && canSyncPoint;
305}
306
307//----------------------------------------------------------------------------
308bool vtkGhostCellsGenerator::UseCacheIfPossible(vtkDataObject* input, vtkDataObject* output)

Callers

nothing calls this directly

Calls 4

GetGlobalIdsMethod · 0.80
GetProcessIdsMethod · 0.80
GetAttributesMethod · 0.45
GetGhostArrayMethod · 0.45

Tested by

no test coverage detected