diff --git a/vtkm/exec/arg/FetchTagArrayTopologyMapIn.h b/vtkm/exec/arg/FetchTagArrayTopologyMapIn.h index 9f12a9256..e272289de 100644 --- a/vtkm/exec/arg/FetchTagArrayTopologyMapIn.h +++ b/vtkm/exec/arg/FetchTagArrayTopologyMapIn.h @@ -227,15 +227,13 @@ struct Fetch; - ValueType result; - result[0] = portal.Get(offset1 + xgcidx.PointIds[0][0]); - result[1] = portal.Get(offset1 + xgcidx.PointIds[0][1]); - result[2] = portal.Get(offset1 + xgcidx.PointIds[0][2]); - result[3] = portal.Get(offset2 + xgcidx.PointIds[1][0]); - result[4] = portal.Get(offset2 + xgcidx.PointIds[1][1]); - result[5] = portal.Get(offset2 + xgcidx.PointIds[1][2]); - return result; + return ValueType(portal.Get(offset1 + xgcidx.PointIds[0][0]), + portal.Get(offset1 + xgcidx.PointIds[0][1]), + portal.Get(offset1 + xgcidx.PointIds[0][2]), + portal.Get(offset2 + xgcidx.PointIds[1][0]), + portal.Get(offset2 + xgcidx.PointIds[1][1]), + portal.Get(offset2 + xgcidx.PointIds[1][2])); }