------------------------------------------------------------------------------
| 1505 | } |
| 1506 | //------------------------------------------------------------------------------ |
| 1507 | void 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 | } |
| 1529 | VTK_ABI_NAMESPACE_END |