Commit 1d816534 authored by Dave Pugmire's avatar Dave Pugmire Committed by Robert Maynard
Browse files

Local var for the array portal instead of inside the for loop.

parent f98f42de
......@@ -193,8 +193,9 @@ private:
vtkm::Id nids = cellSet.GetNumberOfPointsInCell(i);
cellSet.GetIndices(i, ids);
out << nids;
auto IdPortal = ids.GetPortalConstControl();
for (int j = 0; j < nids; ++j)
out << " " << ids.GetPortalControl().Get(j);
out << " " << IdPortal.Get(j);
out << std::endl;
}
......
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