Go to the documentation of this file.
53 #ifndef vtk_m_worklet_contourtree_distributed_multiblockcontourtreehelper_h
54 #define vtk_m_worklet_contourtree_distributed_multiblockcontourtreehelper_h
70 namespace contourtree_distributed
83 ,
LocalSortOrders(static_cast<size_t>(localBlockIndices.GetNumberOfValues()))
131 template <
typename T>
139 unsigned int computeRegularStructure)
143 if (computeRegularStructure == 1)
152 localBlockOrigin, localBlockSize, globalSize));
156 contourTree.
Arcs, sortOrder, field, localGlobalMeshIndex);
157 return localContourTreeMesh;
159 else if (computeRegularStructure == 2)
172 localBlockOrigin, localBlockSize, globalSize));
177 return localContourTreeMesh;
183 "Parallel contour tree requires at least parial boundary augmentation");
Manages an array-worth of data.
Definition: ArrayHandle.h:283
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::Id GetLocalNumberOfBlocks() const
Definition: MultiBlockContourTreeHelper.h:118
vtkm::Id3 BlocksPerDimension
Definition: MultiBlockContourTreeHelper.h:187
Definition: augmented/ContourTree.h:106
VTKM_CONT MultiBlockContourTreeHelper(const vtkm::cont::PartitionedDataSet &input)
Definition: MultiBlockContourTreeHelper.h:88
VTKM_CONT ~MultiBlockContourTreeHelper(void)
Definition: MultiBlockContourTreeHelper.h:97
This class is primarily intended to filters to throw in the control environment to indicate an execut...
Definition: ErrorFilterExecution.h:27
Definition: MultiBlockContourTreeHelper.h:74
std::vector< vtkm::worklet::contourtree_augmented::ContourTree > LocalContourTrees
Definition: MultiBlockContourTreeHelper.h:189
static VTKM_CONT bool Copy(vtkm::cont::DeviceAdapterId devId, const vtkm::cont::ArrayHandle< T, CIn > &input, vtkm::cont::ArrayHandle< U, COut > &output)
Definition: Algorithm.h:410
Definition: ContourTreeMesh.h:129
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
IdArrayType Augmentarcs
Definition: augmented/ContourTree.h:133
std::vector< vtkm::worklet::contourtree_augmented::IdArrayType > LocalSortOrders
Definition: MultiBlockContourTreeHelper.h:190
static vtkm::Bounds GetLocalBounds(const vtkm::cont::PartitionedDataSet &input)
Definition: MultiBlockContourTreeHelper.h:111
vtkm::cont::ArrayHandle< vtkm::Id3 > LocalBlockIndices
Definition: MultiBlockContourTreeHelper.h:188
VTKM_CONT vtkm::cont::ArrayHandleTransform< HandleType, FunctorType > make_ArrayHandleTransform(HandleType handle, FunctorType functor)
make_ArrayHandleTransform is convenience function to generate an ArrayHandleTransform.
Definition: ArrayHandleTransform.h:474
Implicitly permutes the values in an array.
Definition: ArrayHandlePermutation.h:227
vtkm::cont::ArrayHandle< vtkm::Id > IdArrayType
Definition: filter/scalar_topology/worklet/contourtree_augmented/Types.h:90
#define VTKM_CONT
Definition: ExportMacros.h:57
Represent an axis-aligned 3D bounds in space.
Definition: Bounds.h:29
A utility class that converts Ids from local to global given a mesh.
Definition: IdRelabeler.h:79
VTKM_CONT MultiBlockContourTreeHelper(vtkm::Id3 blocksPerDim, const vtkm::cont::ArrayHandle< vtkm::Id3 > &localBlockIndices)
Definition: MultiBlockContourTreeHelper.h:78
A short fixed-length array.
Definition: Types.h:767
vtkm::Id GetGlobalNumberOfBlocks() const
Definition: MultiBlockContourTreeHelper.h:123
static vtkm::worklet::contourtree_augmented::ContourTreeMesh< T > * ComputeLocalContourTreeMesh(const vtkm::Id3 localBlockOrigin, const vtkm::Id3 localBlockSize, const vtkm::Id3 globalSize, const vtkm::cont::ArrayHandle< T > &field, const vtkm::worklet::contourtree_augmented::ContourTree &contourTree, const vtkm::worklet::contourtree_augmented::IdArrayType &sortOrder, unsigned int computeRegularStructure)
Definition: MultiBlockContourTreeHelper.h:133
IdArrayType Arcs
Definition: augmented/ContourTree.h:115
VTKM_CONT_EXPORT VTKM_CONT vtkm::Bounds BoundsGlobalCompute(const vtkm::cont::DataSet &dataset, vtkm::Id coordinate_system_index=0)
Functions to compute bounds for a single dataset or partitioned dataset globally.
VTKM_CONT_EXPORT VTKM_CONT vtkm::Bounds BoundsCompute(const vtkm::cont::DataSet &dataset, vtkm::Id coordinate_system_index=0)
Functions to compute bounds for a single dataSset or partition dataset.
static vtkm::Bounds GetGlobalBounds(const vtkm::cont::PartitionedDataSet &input)
Definition: MultiBlockContourTreeHelper.h:104
Definition: PartitionedDataSet.h:25
IdArrayType Augmentnodes
Definition: augmented/ContourTree.h:132