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

Method SendPiece

Filters/Parallel/vtkIntegrateAttributes.cxx:588–602  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

586
587//------------------------------------------------------------------------------
588void vtkIntegrateAttributes::SendPiece(vtkUnstructuredGrid* src, const double totalSum,
589 const double totalSumCenter[3], const int integrationDimension)
590{
591 assert(this->Controller);
592 double msg[5];
593 msg[0] = static_cast<double>(integrationDimension);
594 msg[1] = totalSum;
595 msg[2] = totalSumCenter[0];
596 msg[3] = totalSumCenter[1];
597 msg[4] = totalSumCenter[2];
598 this->Controller->Send(msg, 5, 0, vtkIntegrateAttributes::IntegrateAttrInfo);
599 this->Controller->Send(src, 0, vtkIntegrateAttributes::IntegrateAttrData);
600 // Done sending. Reset src so satellites will have empty data.
601 src->Initialize();
602}
603
604//------------------------------------------------------------------------------
605void vtkIntegrateAttributes::ReceivePiece(vtkUnstructuredGrid* mergeTo, int fromId,

Callers 2

RequestDataMethod · 0.95
PieceNodeMinToNode0Method · 0.95

Calls 3

assertFunction · 0.50
SendMethod · 0.45
InitializeMethod · 0.45

Tested by

no test coverage detected