Commit bdabfbe1 authored by Robert Maynard's avatar Robert Maynard

Make sure ArrayPortalUniformPointCoordinates constructor is explicit

We have had problems in the past with host/device default constructors
parent b3d951b5
......@@ -25,7 +25,14 @@ class VTKM_ALWAYS_EXPORT ArrayPortalUniformPointCoordinates
public:
using ValueType = vtkm::Vec<vtkm::FloatDefault, 3>;
ArrayPortalUniformPointCoordinates() = default;
VTKM_EXEC_CONT
ArrayPortalUniformPointCoordinates()
: Dimensions(0)
, NumberOfValues(0)
, Origin(0, 0, 0)
, Spacing(1, 1, 1)
{
}
VTKM_EXEC_CONT
ArrayPortalUniformPointCoordinates(vtkm::Id3 dimensions, ValueType origin, ValueType spacing)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment