Go to the documentation of this file.
10 #ifndef vtk_m_worklet_AveragePointNeighborhood_h
11 #define vtk_m_worklet_AveragePointNeighborhood_h
40 template <
typename InputFieldPortalType>
45 using T =
typename InputFieldPortalType::ValueType;
58 sum = sum + inputField.
Get(i, j, k);
63 return static_cast<T
>(sum / size);
73 #endif // vtk_m_worklet_AveragePointNeighborhood_h
AveragePointNeighborhood(vtkm::IdComponent radius)
Definition: AveragePointNeighborhood.h:34
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
vtkm::Int32 IdComponent
Base type to use to index small lists.
Definition: Types.h:194
A control signature tag for input connectivity.
Definition: WorkletNeighborhood.h:129
InputFieldPortalType::ValueType operator()(const vtkm::exec::FieldNeighborhood< InputFieldPortalType > &inputField, const vtkm::exec::BoundaryState &boundary) const
Definition: AveragePointNeighborhood.h:41
A control signature tag for output fields.
Definition: WorkletNeighborhood.h:98
vtkm::IdComponent BoundaryRadius
Definition: AveragePointNeighborhood.h:67
_3(_2, Boundary) ExecutionSignature
Definition: AveragePointNeighborhood.h:31
vtkm::IdComponent3 MinNeighborIndices(vtkm::IdComponent radius) const
Returns the minimum neighborhood indices that are within the bounds of the data.
Definition: BoundaryState.h:127
Definition: AveragePointNeighborhood.h:25
_1 InputDomain
Definition: AveragePointNeighborhood.h:32
void(CellSetIn cellSet, FieldInNeighborhood inputField, FieldOut outputField) ControlSignature
Definition: AveragePointNeighborhood.h:30
The ExecutionSignature tag to query if the current iteration is inside the boundary.
Definition: WorkletNeighborhood.h:54
A control signature tag for neighborhood input values.
Definition: WorkletNeighborhood.h:156
Base class for worklets that map over the points in a structured grid with neighborhood information.
Definition: WorkletPointNeighborhood.h:32
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