------------------------------------------------------------------------------
| 1463 | |
| 1464 | //------------------------------------------------------------------------------ |
| 1465 | int 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 | //------------------------------------------------------------------------------ |
| 1483 | int vtkCommunicator::AllGatherV( |
no test coverage detected