Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_transfer_weights_update_rhe_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_transfer_weights_update_rhe_worklet_h
63 namespace contourtree_distributed
65 namespace hierarchical_hyper_sweeper
76 WholeArrayIn sortedTransferTarget,
78 WholeArrayInOut dependentValuesPortal);
88 template <
typename InPortalType,
typename OutPortalType>
90 const InPortalType& sortedTransferTargetPortal,
92 OutPortalType& dependentValuesPortal)
const
96 vtkm::Id transferTarget = sortedTransferTargetPortal.Get(supernode);
101 (transferTarget != sortedTransferTargetPortal.Get(supernode + 1)))
103 auto originalValue = dependentValuesPortal.Get(transferTarget);
104 dependentValuesPortal.Set(transferTarget, originalValue + valuePrefixSum);
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_EXEC_CONT TransferWeightsUpdateRHEWorklet(const vtkm::Id &lastSupernode)
Definition: TransferWeightsUpdateRHEWorklet.h:83
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
VTKM_EXEC_CONT bool NoSuchElement(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:97
A control signature tag for input fields.
Definition: WorkletMapField.h:49
void(_1, _2, _3, _4) ExecutionSignature
Definition: TransferWeightsUpdateRHEWorklet.h:79
Worklet used in HierarchicalHyperSweeper.TransferWeights(...) to implement step 7a.
Definition: TransferWeightsUpdateRHEWorklet.h:71
VTKM_EXEC void operator()(const vtkm::Id &supernode, const InPortalType &sortedTransferTargetPortal, const vtkm::Id &valuePrefixSum, OutPortalType &dependentValuesPortal) const
Definition: TransferWeightsUpdateRHEWorklet.h:89
void(FieldIn supernodeIndex, WholeArrayIn sortedTransferTarget, FieldIn valuePrefixSumView, WholeArrayInOut dependentValuesPortal) ControlSignature
Definition: TransferWeightsUpdateRHEWorklet.h:78
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
const vtkm::Id LastSupernode
Definition: TransferWeightsUpdateRHEWorklet.h:126