From 60843cbab89fc32085b95bc22633e57e2147bd6c Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Fri, 25 Nov 2016 11:39:08 -0500 Subject: [PATCH] Allow people to get the portal from ExecutionWholeArray. This is required when doing some optimizations to PointGradient. --- vtkm/exec/ExecutionWholeArray.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vtkm/exec/ExecutionWholeArray.h b/vtkm/exec/ExecutionWholeArray.h index 802c49c12..c70ae5c90 100644 --- a/vtkm/exec/ExecutionWholeArray.h +++ b/vtkm/exec/ExecutionWholeArray.h @@ -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; };