53 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_transfer_weights_update_lhe_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_transfer_weights_update_lhe_worklet_h
63 namespace contourtree_distributed
65 namespace hierarchical_hyper_sweeper
74 FieldIn sortedTransferTargetShiftedView,
75 FieldIn valuePrefixSumShiftedView,
76 WholeArrayInOut dependentValuesPortal);
79 template <
typename InOutPortalType>
81 const vtkm::Id& sortedTransferTargetPreviousValue,
82 const vtkm::Id& valuePrefixSumPreviousValue,
83 InOutPortalType& dependentValuesPortal)
const
91 if (sortedTransferTargetValue != sortedTransferTargetPreviousValue)
93 auto originalValue = dependentValuesPortal.Get(sortedTransferTargetValue);
94 dependentValuesPortal.Set(sortedTransferTargetValue,
95 originalValue - valuePrefixSumPreviousValue);