Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_tree_grafter_supernode_when_comparator_h
54 #define vtk_m_worklet_contourtree_distributed_tree_grafter_supernode_when_comparator_h
64 namespace contourtree_distributed
66 namespace tree_grafter
98 if (maskedLeftWhen < maskedRightWhen)
102 else if (maskedLeftWhen > maskedRightWhen)
120 if (leftHyperparent < rightHyperparent)
124 else if (leftHyperparent > rightHyperparent)
133 bool sortAscending =
true;
146 this->ContourTreeSupernodesPortal.Get(rightSuperId));
189 this->HierarchicalHyperparent.PrepareForInput(device, token),
190 this->HierarchicalHyperId.PrepareForInput(device, token),
191 this->HierarchicalHyperarc.PrepareForInput(device, token),
192 this->ContourTreeSupernodes.PrepareForInput(device, token),
193 this->SupernodeType.PrepareForInput(device, token));
IdArrayPortalType WhenTransferredPortal
Definition: SuperNodeWhenComparator.h:156
IdArrayPortalType ContourTreeSupernodesPortal
Definition: SuperNodeWhenComparator.h:160
VTKM_EXEC_CONT bool IsAscending(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:121
const vtkm::worklet::contourtree_augmented::IdArrayType & ContourTreeSupernodes
Definition: SuperNodeWhenComparator.h:201
const vtkm::worklet::contourtree_augmented::IdArrayType & HierarchicalHyperId
Definition: SuperNodeWhenComparator.h:199
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_EXEC_CONT SuperNodeWhenComparatorImpl(const IdArrayPortalType &whenTransferredPortal, const IdArrayPortalType &hierarchicalHyperparentPortal, const IdArrayPortalType &hierarchicalHyperIdPortal, const IdArrayPortalType &hierarchicalHyperarcPortal, const IdArrayPortalType &contourTreeSupernodesPortal, const IdArrayPortalType &supernodeTypePortal)
Definition: SuperNodeWhenComparator.h:77
#define VTKM_EXEC_CONT
Definition: ExportMacros.h:52
VTKM_CONT ReadPortalType PrepareForInput(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Prepares this array to be used as an input to an operation in the execution environment.
Definition: ArrayHandle.h:574
const vtkm::worklet::contourtree_augmented::IdArrayType & WhenTransferred
Definition: SuperNodeWhenComparator.h:197
const vtkm::worklet::contourtree_augmented::IdArrayType & SupernodeType
Definition: SuperNodeWhenComparator.h:202
VTKM_EXEC_CONT vtkm::Id MaskedIndex(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:127
IdArrayPortalType HierarchicalHyperarcPortal
Definition: SuperNodeWhenComparator.h:159
Definition: SuperNodeWhenComparator.h:165
typename StorageType::ReadPortalType ReadPortalType
Definition: ArrayHandle.h:294
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
A token to hold the scope of an ArrayHandle or other object.
Definition: Token.h:35
VTKM_CONT SuperNodeWhenComparatorImpl PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: SuperNodeWhenComparator.h:185
Comparator used in TreeGrafter::ListNewSupernodes to sort the NewSupernodes arrays.
Definition: SuperNodeWhenComparator.h:70
const vtkm::worklet::contourtree_augmented::IdArrayType & HierarchicalHyperarc
Definition: SuperNodeWhenComparator.h:200
VTKM_EXEC bool operator()(const vtkm::Id &leftSuperId, const vtkm::Id &rightSuperId) const
Definition: SuperNodeWhenComparator.h:92
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_CONT SuperNodeWhenComparator(const vtkm::worklet::contourtree_augmented::IdArrayType &whenTransferred, const vtkm::worklet::contourtree_augmented::IdArrayType &hierarchicalHyperparent, const vtkm::worklet::contourtree_augmented::IdArrayType &hierarchicalHyperId, const vtkm::worklet::contourtree_augmented::IdArrayType &hierarchicalHyperarc, const vtkm::worklet::contourtree_augmented::IdArrayType &contourTreeSupernodes, const vtkm::worklet::contourtree_augmented::IdArrayType &supernodeType)
Definition: SuperNodeWhenComparator.h:169
constexpr vtkm::Id IS_ATTACHMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:87
IdArrayPortalType HierarchicalHyperIdPortal
Definition: SuperNodeWhenComparator.h:158
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
const vtkm::worklet::contourtree_augmented::IdArrayType & HierarchicalHyperparent
Definition: SuperNodeWhenComparator.h:198
IdArrayPortalType SupernodeTypePortal
Definition: SuperNodeWhenComparator.h:161
IdArrayPortalType HierarchicalHyperparentPortal
Definition: SuperNodeWhenComparator.h:157
vtkm::worklet::contourtree_augmented::IdArrayType::ReadPortalType IdArrayPortalType
Definition: SuperNodeWhenComparator.h:73