------------------------------------------------------------------------------
| 343 | |
| 344 | //------------------------------------------------------------------------------ |
| 345 | void vtkIntegrateAttributes::ExecuteBlock(vtkDataSet* input, vtkUnstructuredGrid* output, |
| 346 | int fieldset_index, vtkIntegrateAttributesFieldList& pdList, |
| 347 | vtkIntegrateAttributesFieldList& cdList, double& totalSum, double totalSumCenter[3], |
| 348 | int totalIntegrationDimension) |
| 349 | { |
| 350 | vtkIntegrateAttributesFunctor functor(this, input, output, totalIntegrationDimension, |
| 351 | fieldset_index, pdList, cdList, this->IntegrationStrategy); |
| 352 | vtkSMPTools::For(0, input->GetNumberOfCells(), functor); |
| 353 | |
| 354 | const auto blockSum = functor.GetSum(); |
| 355 | const auto blockSumCenter = functor.GetSumCenter(); |
| 356 | totalSum += blockSum; |
| 357 | vtkMath::Add(blockSumCenter, totalSumCenter, totalSumCenter); |
| 358 | } |
| 359 | |
| 360 | //------------------------------------------------------------------------------ |
| 361 | int vtkIntegrateAttributes::RequestData( |
no test coverage detected