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

Method ExecuteBlock

Filters/Parallel/vtkIntegrateAttributes.cxx:345–358  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

343
344//------------------------------------------------------------------------------
345void 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//------------------------------------------------------------------------------
361int vtkIntegrateAttributes::RequestData(

Callers 1

RequestDataMethod · 0.95

Calls 5

GetSumMethod · 0.80
GetSumCenterMethod · 0.80
ForFunction · 0.50
AddFunction · 0.50
GetNumberOfCellsMethod · 0.45

Tested by

no test coverage detected