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

Method ExchangeData

Filters/ParallelMPI/vtkStructuredImplicitConnectivity.cxx:1488–1515  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1486
1487//------------------------------------------------------------------------------
1488void 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}
1516VTK_ABI_NAMESPACE_END

Callers 8

RequestDataMethod · 0.80
RequestDataMethod · 0.80
RequestDataMethod · 0.80

Calls 5

ConstructOutputMethod · 0.95
GrowGridMethod · 0.95
UpdateNeighborListMethod · 0.95
assertFunction · 0.50
BarrierMethod · 0.45