Commit 4810cef7 authored by Sujin Philip's avatar Sujin Philip
Browse files

Field::SetData should accept any ArrayHandle type

parent cda85450
...@@ -249,8 +249,8 @@ public: ...@@ -249,8 +249,8 @@ public:
vtkm::cont::DynamicArrayHandle& GetData(); vtkm::cont::DynamicArrayHandle& GetData();
template <typename T> template <typename T, typename StorageTag>
VTKM_CONT void SetData(const vtkm::cont::ArrayHandle<T>& newdata) VTKM_CONT void SetData(const vtkm::cont::ArrayHandle<T, StorageTag>& newdata)
{ {
this->Data = newdata; this->Data = newdata;
this->ModifiedFlag = true; this->ModifiedFlag = true;
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