------------------------------------------------------------------------------
| 1486 | |
| 1487 | //------------------------------------------------------------------------------ |
| 1488 | void vtkStructuredImplicitConnectivity::ExchangeData() |
| 1489 | { |
| 1490 | // Sanity checks! |
| 1491 | assert("pre: null controller!" && (this->Controller != nullptr)); |
| 1492 | |
| 1493 | if (this->InputGrid != nullptr) |
| 1494 | { |
| 1495 | // STEP 0: construct output grid data-structure |
| 1496 | this->ConstructOutput(); |
| 1497 | |
| 1498 | // STEP 1: Process each dimension |
| 1499 | for (int d = 0; d < this->DomainInfo->NDim; ++d) |
| 1500 | { |
| 1501 | int dim = this->DomainInfo->DimIndex[d]; |
| 1502 | this->GrowGrid(dim); |
| 1503 | |
| 1504 | // STEP 2: Update neighbor list, w/ the grown grid information |
| 1505 | this->UpdateNeighborList(dim); |
| 1506 | } // END for all dimensions |
| 1507 | } // END if |
| 1508 | else |
| 1509 | { |
| 1510 | this->OutputGrid = nullptr; |
| 1511 | } // END else |
| 1512 | |
| 1513 | // Barrier synchronization |
| 1514 | this->Controller->Barrier(); |
| 1515 | } |
| 1516 | VTK_ABI_NAMESPACE_END |