Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_compute_superparent_ids_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_hierarchical_hyper_sweeper_initialize_intrinsic_vertex_count_compute_superparent_ids_worklet_h
63 namespace contourtree_distributed
65 namespace hierarchical_hyper_sweeper
76 ExecObject findRegularByGlobal,
77 WholeArrayIn hierarchicalTreeRegular2Supernode,
78 WholeArrayIn hierarchicalTreeSuperparents,
89 template <
typename ExecObjType,
typename InFieldPortalType>
91 const ExecObjType& findRegularByGlobal,
92 const InFieldPortalType& hierarchicalTreeRegular2SupernodePortal,
93 const InFieldPortalType& hierarchicalTreeSuperparentsPortal,
98 vtkm::Id hierarchicalRegularId = findRegularByGlobal(globalId);
111 vtkm::Id superId = hierarchicalTreeRegular2SupernodePortal.Get(hierarchicalRegularId);
116 superparent = hierarchicalTreeSuperparentsPortal.Get(hierarchicalRegularId);
121 superparent = superId;
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC void operator()(const vtkm::Id &globalId, const ExecObjType &findRegularByGlobal, const InFieldPortalType &hierarchicalTreeRegular2SupernodePortal, const InFieldPortalType &hierarchicalTreeSuperparentsPortal, vtkm::Id &superparent) const
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.h:90
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
A control signature tag for output fields.
Definition: WorkletMapField.h:60
_1 InputDomain
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.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, _5) ExecutionSignature
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.h:82
Worklet used in HierarchicalHyperSweeper.InitializeIntrinsicVertexCount(...) to Look up the global Id...
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.h:70
VTKM_EXEC_CONT InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet()
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.h:87
constexpr vtkm::Id NO_SUCH_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:73
Base class for worklets that do a simple mapping of field arrays.
Definition: WorkletMapField.h:38
void(FieldIn globalIds, ExecObject findRegularByGlobal, WholeArrayIn hierarchicalTreeRegular2Supernode, WholeArrayIn hierarchicalTreeSuperparents, FieldOut superparents) ControlSignature
Definition: InitializeIntrinsicVertexCountComputeSuperparentIdsWorklet.h:81