Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_bract_maker_compress_regularised_nodes_find_new_superarcs_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_bract_maker_compress_regularised_nodes_find_new_superarcs_worklet_h
63 namespace contourtree_distributed
74 WholeArrayIn upNeighbour,
75 WholeArrayIn downNeighbour,
76 WholeArrayOut newSuperarc
85 template <
typename InFieldPortalType,
typename OutFieldPortalType>
87 const InFieldPortalType& newVertexIdPortal,
89 const InFieldPortalType& downNeighbourPortal,
90 const InFieldPortalType& upNeighbourPortal,
91 const OutFieldPortalType& newSuperarcPortal)
const
95 vtkm::Id newVertexIdIn = newVertexIdPortal.Get(returnIndex);
105 vtkm::Id oldInbound = bractSuperarcIdIn;
114 newVertexIdPortal.Get(oldInbound)))
116 newSuperarcPortal.Set(newId, newVertexIdPortal.Get(oldInbound));
129 if (upNbr == returnIndex)
131 newSuperarcPortal.Set(newId, newVertexIdPortal.Get(downNbr));
136 newSuperarcPortal.Set(newId, newVertexIdPortal.Get(upNbr));
#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
Step 1 of IdentifyRegularisedSupernodes.
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:69
VTKM_EXEC_CONT vtkm::Id MaskedIndex(vtkm::Id flaggedIndex)
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:127
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
void(InputIndex, _1, _2, _3, _4, _5) ExecutionSignature
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:78
A control signature tag for input fields.
Definition: WorkletMapField.h:49
_1 InputDomain
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:79
void(WholeArrayIn newVertexId, FieldIn bractSuperarcs, WholeArrayIn upNeighbour, WholeArrayIn downNeighbour, WholeArrayOut newSuperarc) ControlSignature
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:77
VTKM_EXEC_CONT CompressRegularisedNodesFindNewSuperarcsWorklet()
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:83
VTKM_EXEC void operator()(const vtkm::Id &returnIndex, const InFieldPortalType &newVertexIdPortal, const vtkm::Id &bractSuperarcIdIn, const InFieldPortalType &downNeighbourPortal, const InFieldPortalType &upNeighbourPortal, const OutFieldPortalType &newSuperarcPortal) const
Definition: CompressRegularisedNodesFindNewSuperarcsWorklet.h:86
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