Stop GetStorage copy.

This commit is contained in:
Mark Kim 2018-02-06 16:13:41 -05:00
parent fdfd62d43a
commit af7a4a7805

@ -268,7 +268,7 @@ ArrayHandle<T, StorageTagBasic>::PrepareForInput(DeviceAdapterTag device) const
this->PrepareForDevice(device);
const vtkm::UInt64 numBytes = static_cast<vtkm::UInt64>(sizeof(ValueType)) *
static_cast<vtkm::UInt64>(this->GetStorage().GetNumberOfValues());
static_cast<vtkm::UInt64>(this->GetNumberOfValues());
if (!this->Internals->ExecutionArrayValid)
@ -348,7 +348,7 @@ ArrayHandle<T, StorageTagBasic>::PrepareForInPlace(DeviceAdapterTag device)
this->PrepareForDevice(device);
const vtkm::UInt64 numBytes = static_cast<vtkm::UInt64>(sizeof(ValueType)) *
static_cast<vtkm::UInt64>(this->GetStorage().GetNumberOfValues());
static_cast<vtkm::UInt64>(this->GetNumberOfValues());
if (!this->Internals->ExecutionArrayValid)
{