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

Method AllocateCellGhostArray

Common/DataModel/vtkDataSet.cxx:1076–1087  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1074
1075//------------------------------------------------------------------------------
1076vtkUnsignedCharArray* vtkDataSet::AllocateCellGhostArray()
1077{
1078 if (!this->GetCellGhostArray())
1079 {
1080 vtkNew<vtkUnsignedCharArray> ghosts;
1081 ghosts->SetName(vtkDataSetAttributes::GhostArrayName());
1082 ghosts->SetNumberOfValues(this->GetNumberOfCells());
1083 ghosts->FillValue(0);
1084 this->GetCellData()->AddArray(ghosts);
1085 }
1086 return this->GetCellGhostArray();
1087}
1088
1089//------------------------------------------------------------------------------
1090vtkMTimeType vtkDataSet::GetGhostCellsTime()

Callers 10

BlankCellMethod · 0.80
GenerateGhostArrayMethod · 0.80
BlankCellMethod · 0.80
BlankCellMethod · 0.80
RegisterGridsFunction · 0.80

Calls 7

GetCellGhostArrayMethod · 0.95
GhostArrayNameFunction · 0.85
SetNameMethod · 0.45
SetNumberOfValuesMethod · 0.45
GetNumberOfCellsMethod · 0.45
AddArrayMethod · 0.45
GetCellDataMethod · 0.45

Tested by 4

RegisterGridsFunction · 0.64