------------------------------------------------------------------------------
| 802 | |
| 803 | //------------------------------------------------------------------------------ |
| 804 | int vtkCommunicator::BroadcastVoidArray(void* data, vtkIdType length, int type, int srcProcessId) |
| 805 | { |
| 806 | if (srcProcessId == this->LocalProcessId) |
| 807 | { |
| 808 | int result = 1; |
| 809 | for (int i = 0; i < this->NumberOfProcesses; i++) |
| 810 | { |
| 811 | if (i != this->LocalProcessId) |
| 812 | { |
| 813 | result &= this->SendVoidArray(data, length, type, i, BROADCAST_TAG); |
| 814 | } |
| 815 | } |
| 816 | return result; |
| 817 | } |
| 818 | else |
| 819 | { |
| 820 | return this->ReceiveVoidArray(data, length, type, srcProcessId, BROADCAST_TAG); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | //------------------------------------------------------------------------------ |
| 825 | int vtkCommunicator::Broadcast(vtkDataObject* data, int srcProcessId) |
no test coverage detected