Go to the documentation of this file.
10 #ifndef vtk_m_exec_FieldNeighborhood_h
11 #define vtk_m_exec_FieldNeighborhood_h
33 template <
typename FieldPortalType>
43 using ValueType =
typename FieldPortalType::ValueType;
108 FieldNeighborhood(
const vtkm::internal::ArrayPortalUniformPointCoordinates& portal,
142 vtkm::internal::ArrayPortalUniformPointCoordinates
Portal;
147 #endif //vtk_m_exec_FieldNeighborhood_h
ValueType GetUnchecked(const vtkm::Id3 &ijk) const
Retrieve a field value relative to the visited element without bounds checking.
Definition: FieldNeighborhood.h:89
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
FieldNeighborhood(const FieldPortalType &portal, const vtkm::exec::BoundaryState &boundary)
Definition: FieldNeighborhood.h:37
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
FieldPortalType Portal
The array portal containing field values.
Definition: FieldNeighborhood.h:98
ValueType GetUnchecked(vtkm::IdComponent i, vtkm::IdComponent j, vtkm::IdComponent k) const
Retrieve a field value relative to the visited element without bounds checking.
Definition: FieldNeighborhood.h:75
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
typename FieldPortalType::ValueType ValueType
Definition: FieldNeighborhood.h:43
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
ValueType Get(const vtkm::Id3 &ijk) const
Retrieve a field value relative to the visited element.
Definition: FieldNeighborhood.h:82
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
vtkm::exec::BoundaryState const *const Boundary
The vtkm::exec::BoundaryState used to find field values from local indices.
Definition: FieldNeighborhood.h:95
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
Retrieves field values from a neighborhood.
Definition: FieldNeighborhood.h:34
ValueType Get(vtkm::IdComponent i, vtkm::IdComponent j, vtkm::IdComponent k) const
Retrieve a field value relative to the visited element.
Definition: FieldNeighborhood.h:61