mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-19 18:45:43 +00:00
Add a default constructor for ScatterCounting.
Without a default constructor for ScatterCounting any class that wants to hold onto a ScatterCounting object is required to know what device they are running on. By allowing default construction, we can move that requirement to just have a method on the object require a device adapter object.
This commit is contained in:
parent
b93658b403
commit
4cd2f582f4
@ -137,6 +137,11 @@ struct SubtractToVisitIndexKernel : vtkm::exec::FunctorBase
|
|||||||
///
|
///
|
||||||
struct ScatterCounting
|
struct ScatterCounting
|
||||||
{
|
{
|
||||||
|
VTKM_CONT_EXPORT
|
||||||
|
ScatterCounting()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
template<typename CountArrayType, typename Device>
|
template<typename CountArrayType, typename Device>
|
||||||
VTKM_CONT_EXPORT
|
VTKM_CONT_EXPORT
|
||||||
ScatterCounting(const CountArrayType &countArray, Device)
|
ScatterCounting(const CountArrayType &countArray, Device)
|
||||||
|
Loading…
Reference in New Issue
Block a user