Use ArrayGetValue where possible in worklets.
Replace code such as myArray.GetPortalControl().Get(0)
with
vtkm::cont::ArrayGetValue(0, myArray)
, which will just retrieve
the single value without transferring the entire contents of
myArray
to the host. This should prevent memory thrashing.
Also did some general style clean-ups and fixed loops that called
GetPortalControl
in the loop body.
Fixes #391 (closed).
Edited by Allison Vacanti