Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_find_regular_by_global_device_data_h
54 #define vtk_m_worklet_contourtree_distributed_find_regular_by_global_device_data_h
64 namespace contourtree_distributed
103 if (leftId > globalId)
109 if (leftId == globalId)
117 if (rightId < globalId)
123 if (rightId == globalId)
129 while (left <= right)
137 if (midId == globalId)
142 if (midId < globalId)
148 if (midId > globalId)
vtkm::worklet::contourtree_augmented::IdArrayType RegularNodeGlobalIds
Definition: FindRegularByGlobal.h:189
VTKM_CONT FindRegularByGlobal(const vtkm::worklet::contourtree_augmented::IdArrayType ®ularNodeSortOrder, const vtkm::worklet::contourtree_augmented::IdArrayType ®ularNodeGlobalIds)
constructor
Definition: FindRegularByGlobal.h:172
typename vtkm::worklet::contourtree_augmented::IdArrayType::ReadPortalType IndicesPortalType
Definition: FindRegularByGlobal.h:73
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
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
IndicesPortalType RegularNodeSortOrder
Definition: FindRegularByGlobal.h:161
VTKM_EXEC vtkm::Id FindRegularByGlobal(vtkm::Id globalId) const
routine to search the array of regular nodes for a particular global ID
Definition: FindRegularByGlobal.h:95
VTKM_CONT FindRegularByGlobalDeviceData(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token, const vtkm::worklet::contourtree_augmented::IdArrayType ®ularNodeSortOrder, const vtkm::worklet::contourtree_augmented::IdArrayType ®ularNodeGlobalIds)
Definition: FindRegularByGlobal.h:76
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
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::worklet::contourtree_augmented::IdArrayType RegularNodeSortOrder
Definition: FindRegularByGlobal.h:188
Base ExecutionObjectBase for execution objects to inherit from so that you can use an arbitrary objec...
Definition: ExecutionObjectBase.h:31
Definition: DeviceAdapterTag.h:52
Device implementation of FindRegularByGlobal for the HierarchicalContourTree.
Definition: FindRegularByGlobal.h:69
ExecutionObject to generate a device object to use FindRegularByGlobal for the HierarchicalContourTre...
Definition: FindRegularByGlobal.h:167
VTKM_EXEC vtkm::Id operator()(vtkm::Id globalId) const
Define also as an operator so that we can use it in ArrayHandleTransform directly.
Definition: FindRegularByGlobal.h:90
VTKM_CONT FindRegularByGlobalDeviceData PrepareForExecution(vtkm::cont::DeviceAdapterId device, vtkm::cont::Token &token) const
Definition: FindRegularByGlobal.h:179
IndicesPortalType RegularNodeGlobalIds
Definition: FindRegularByGlobal.h:162
constexpr vtkm::Id NO_SUCH_ELEMENT
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:73