------------------------------------------------------------------------------
| 586 | |
| 587 | //------------------------------------------------------------------------------ |
| 588 | void 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 | //------------------------------------------------------------------------------ |
| 605 | void vtkIntegrateAttributes::ReceivePiece(vtkUnstructuredGrid* mergeTo, int fromId, |
no test coverage detected