Allow people to get the portal from ExecutionWholeArray.

This is required when doing some optimizations to PointGradient.
This commit is contained in:
Robert Maynard 2016-11-25 11:39:08 -05:00
parent e462d34c60
commit 60843cbab8

@ -71,6 +71,9 @@ public:
VTKM_EXEC
void Set(vtkm::Id index, const T& t) const { this->Portal.Set(index, t); }
VTKM_EXEC
const PortalType& GetPortal() const { return this->Portal; }
private:
PortalType Portal;
};
@ -109,6 +112,9 @@ public:
VTKM_EXEC
T Get(vtkm::Id index) const { return this->Portal.Get(index); }
VTKM_EXEC
const PortalType& GetPortal() const { return this->Portal; }
private:
PortalType Portal;
};