Go to the documentation of this file.
10 #ifndef vtk_m_exec_BoundaryState_h
11 #define vtk_m_exec_BoundaryState_h
134 if (this->
IJK[component] >= radius)
136 minIndices[component] = -radius;
167 maxIndices[component] = radius;
172 this->
IJK[component] - 1);
206 return this->
IJK + neighbor;
287 #endif //vtk_m_exec_BoundaryState_h
vtkm::Id3 NeighborIndexToFullIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:210
Provides a neighborhood's placement with respect to the mesh's boundary.
Definition: BoundaryState.h:31
#define VTKM_EXEC
Definition: ExportMacros.h:51
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::IdComponent3 MaxNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:158
#define VTKM_ASSERT(condition)
Definition: Assert.h:43
constexpr vtkm::Vec< T, vtkm::IdComponent(sizeof...(Ts)+1)> make_Vec(T value0, Ts &&... args)
Initializes and returns a Vec containing all the arguments.
Definition: Types.h:1253
vtkm::IdComponent3 ClampNeighborIndex(const vtkm::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size),...
Definition: BoundaryState.h:223
vtkm::Id3 NeighborIndexToFullIndexClamp(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:193
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
bool IsNeighborInXBoundary(vtkm::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:92
const vtkm::Id3 & GetCenterIndex() const
Returns the center index of the neighborhood.
Definition: BoundaryState.h:43
bool IsRadiusInBoundary(vtkm::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set.
Definition: BoundaryState.h:81
vtkm::IdComponent3 ClampNeighborIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size),...
Definition: BoundaryState.h:232
vtkm::Id3 IJK
The 3D index of the visited element.
Definition: BoundaryState.h:279
bool IsRadiusInZBoundary(vtkm::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:66
bool IsRadiusInXBoundary(vtkm::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:54
vtkm::Id NeighborIndexToFlatIndex(const vtkm::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:264
bool IsNeighborInYBoundary(vtkm::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:97
vtkm::Id NeighborIndexToFlatIndex(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:271
bool IsNeighborInBoundary(const vtkm::IdComponent3 &neighbor) const
Returns true if the neighbor at the specified offset vector is contained within the bounds of the cel...
Definition: BoundaryState.h:111
bool IsNeighborInZBoundary(vtkm::IdComponent offset) const
Returns true if the neighbor at the specified offset is contained within the bounds of the cell set i...
Definition: BoundaryState.h:102
vtkm::IdComponent3 MinNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:127
bool IsRadiusInYBoundary(vtkm::IdComponent radius) const
Returns true if a neighborhood of the given radius is contained within the bounds of the cell set in ...
Definition: BoundaryState.h:60
vtkm::Int64 Id
Base type to use to index arrays.
Definition: Types.h:227
vtkm::Id3 PointDimensions
The dimensions of the elements in the mesh.
Definition: BoundaryState.h:282
vtkm::Id NeighborIndexToFlatIndexClamp(const vtkm::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:245
vtkm::Id3 NeighborIndexToFullIndex(const vtkm::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:204
BoundaryState(const vtkm::Id3 &ijk, const vtkm::Id3 &pdims)
Definition: BoundaryState.h:34
vtkm::Id3 NeighborIndexToFullIndexClamp(const vtkm::IdComponent3 &neighbor) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:185
vtkm::Id NeighborIndexToFlatIndexClamp(vtkm::IdComponent neighborI, vtkm::IdComponent neighborJ, vtkm::IdComponent neighborK) const
Takes a local neighborhood index (in the ranges of -neighborhood size to neighborhood size) and retur...
Definition: BoundaryState.h:253