Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_subtract_low_end_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_subtract_low_end_worklet_h
63 namespace contourtree_distributed
65 namespace hierarchical_hyper_sweeper
73 using ControlSignature = void(WholeArrayIn superparents, WholeArrayInOut superarcRegularCounts);
81 template <
typename InFieldPortalType,
typename InOutFieldPortalType>
83 const InFieldPortalType superparentsPortal,
84 const InOutFieldPortalType superarcRegularCountsPortal)
const
88 vtkm::Id superparent = superparentsPortal.Get(vertex);
99 superarcRegularCountsPortal.Set(superparent,
100 superarcRegularCountsPortal.Get(superparent) - vertex);
105 if (superparentsPortal.Get(vertex - 1) != superparent)
107 superarcRegularCountsPortal.Set(superparent,
108 superarcRegularCountsPortal.Get(superparent) - vertex);
#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
Worklet used in HierarchicalHyperSweeper.InitializeIntrinsicVertexCount(...) to subtract out the low ...
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:70
_1 InputDomain
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:75
void(WholeArrayIn superparents, WholeArrayInOut superarcRegularCounts) ControlSignature
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:73
VTKM_EXEC void operator()(const vtkm::Id &vertex, const InFieldPortalType superparentsPortal, const InOutFieldPortalType superarcRegularCountsPortal) const
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:82
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
VTKM_EXEC_CONT InitializeIntrinsicVertexCountSubtractLowEndWorklet()
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:79
void(InputIndex, _1, _2) ExecutionSignature
Definition: InitializeIntrinsicVertexCountSubtractLowEndWorklet.h:74
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38