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

Method ReceivePiece

Filters/Parallel/vtkIntegrateAttributes.cxx:605–623  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

603
604//------------------------------------------------------------------------------
605void vtkIntegrateAttributes::ReceivePiece(vtkUnstructuredGrid* mergeTo, int fromId,
606 double& totalSum, double totalSumCenter[3], int& integrationDimension)
607{
608 assert(this->Controller);
609 double msg[5];
610 this->Controller->Receive(msg, 5, fromId, vtkIntegrateAttributes::IntegrateAttrInfo);
611 vtkNew<vtkUnstructuredGrid> tmp;
612 this->Controller->Receive(tmp, fromId, vtkIntegrateAttributes::IntegrateAttrData);
613 if (vtkIntegrateAttributes::CompareIntegrationDimension(
614 mergeTo, (int)(msg[0]), totalSum, totalSumCenter, integrationDimension))
615 {
616 totalSum += msg[1];
617 totalSumCenter[0] += msg[2];
618 totalSumCenter[1] += msg[3];
619 totalSumCenter[2] += msg[4];
620 vtkIntegrateAttributes::IntegrateSatelliteData(tmp->GetPointData(), mergeTo->GetPointData());
621 vtkIntegrateAttributes::IntegrateSatelliteData(tmp->GetCellData(), mergeTo->GetCellData());
622 }
623}
624
625//------------------------------------------------------------------------------
626void vtkIntegrateAttributes::AllocateAttributes(

Callers 2

RequestDataMethod · 0.95
PieceNodeMinToNode0Method · 0.95

Calls 4

assertFunction · 0.50
ReceiveMethod · 0.45
GetPointDataMethod · 0.45
GetCellDataMethod · 0.45

Tested by

no test coverage detected