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

Method AllGatherVVoidArray

Parallel/Core/vtkCommunicator.cxx:1465–1480  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1463
1464//------------------------------------------------------------------------------
1465int vtkCommunicator::AllGatherVVoidArray(const void* sendBuffer, void* recvBuffer,
1466 vtkIdType sendLength, vtkIdType* recvLengths, vtkIdType* offsets, int type)
1467{
1468 int result = 1;
1469 result &=
1470 this->GatherVVoidArray(sendBuffer, recvBuffer, sendLength, recvLengths, offsets, type, 0);
1471 // Find the maximum place in the array that contains data.
1472 vtkIdType maxIndex = 0;
1473 for (int i = 0; i < this->NumberOfProcesses; i++)
1474 {
1475 vtkIdType index = recvLengths[i] + offsets[i];
1476 maxIndex = (maxIndex < index) ? index : maxIndex;
1477 }
1478 result &= this->BroadcastVoidArray(recvBuffer, maxIndex, type, 0);
1479 return result;
1480}
1481
1482//------------------------------------------------------------------------------
1483int vtkCommunicator::AllGatherV(

Callers 2

AllGatherVMethod · 0.95
AllGatherVFunction · 0.45

Calls 2

GatherVVoidArrayMethod · 0.95
BroadcastVoidArrayMethod · 0.95

Tested by

no test coverage detected