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

Method CreateGhostLayers

Filters/Geometry/vtkStructuredGridConnectivity.cxx:1507–1528  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1505}
1506//------------------------------------------------------------------------------
1507void vtkStructuredGridConnectivity::CreateGhostLayers(int N)
1508{
1509 if (N == 0)
1510 {
1511 vtkWarningMacro("N=0 ghost layers requested! No ghost layers will be created");
1512 return;
1513 }
1514
1515 this->NumberOfGhostLayers += N;
1516 this->AllocateInternalDataStructures();
1517 this->GhostedExtents.resize(this->NumberOfGrids * 6, -1);
1518
1519 for (unsigned int i = 0; i < this->NumberOfGrids; ++i)
1520 {
1521 this->CreateGhostedExtent(i, N);
1522 this->CreateGhostedMaskArrays(i);
1523 this->ComputeNeighborSendAndRcvExtent(i, N);
1524 this->InitializeGhostData(i);
1525 this->TransferRegisteredDataToGhostedData(i);
1526 this->TransferGhostDataFromNeighbors(i);
1527 } // END for all grids
1528}
1529VTK_ABI_NAMESPACE_END

Callers 3

GetGhostedDataSetFunction · 0.45
Test2DAMRFunction · 0.45
Test3DAMRFunction · 0.45

Tested by 3

GetGhostedDataSetFunction · 0.36
Test2DAMRFunction · 0.36
Test3DAMRFunction · 0.36