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

Method BroadcastVoidArray

Parallel/Core/vtkCommunicator.cxx:804–822  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

802
803//------------------------------------------------------------------------------
804int 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//------------------------------------------------------------------------------
825int vtkCommunicator::Broadcast(vtkDataObject* data, int srcProcessId)

Callers 7

BroadcastMethod · 0.95
AllGatherVoidArrayMethod · 0.95
AllGatherVVoidArrayMethod · 0.95
AllReduceVoidArrayMethod · 0.95
BroadcastFunction · 0.45
OptimizeBoundingBoxMethod · 0.45

Calls 2

SendVoidArrayMethod · 0.45
ReceiveVoidArrayMethod · 0.45

Tested by

no test coverage detected