53 #ifndef vtk_m_worklet_contourtree_distributed_bract_maker_identify_regularise_supernodes_step_one_worklet_h
54 #define vtk_m_worklet_contourtree_distributed_bract_maker_identify_regularise_supernodes_step_one_worklet_h
63 namespace contourtree_distributed
74 WholeArrayIn meshSortIndex,
75 WholeArrayIn upNeighbour,
76 WholeArrayIn downNeighbour,
77 WholeArrayOut newVertexId
90 template <
typename InFieldPortalType,
91 typename MeshSortIndexPortalType,
92 typename OutFieldPortalType>
95 const InFieldPortalType& bractVertexSupersetPortal,
96 const MeshSortIndexPortalType& meshSortIndexPortal,
97 const InFieldPortalType& upNeighbourPortal,
98 const InFieldPortalType& downNeighbourPortal,
99 const OutFieldPortalType& newVertexIdPortal)
const
108 vtkm::Id fromSort = meshSortIndexPortal.Get(bractVertexSupersetPortal.Get(from));
109 vtkm::Id toSort = meshSortIndexPortal.Get(bractVertexSupersetPortal.Get(to));
112 if (fromSort < toSort)
114 if (upNeighbourPortal.Get(from) != to)
118 if (downNeighbourPortal.Get(to) != from)
125 if (upNeighbourPortal.Get(to) != from)
129 if (downNeighbourPortal.Get(from) != to)