• Kenneth Moreland's avatar
    Add ability to get an array from a Field for a particular type · 3039a18b
    Kenneth Moreland authored
    This is done through a new version of ApplyPolicy. This version takes
    a type of the array as its first template argument, which must be
    This requires having a list of potential storage to try. It will use
    that to construct an ArrayHandleMultiplexer containing all potential
    types. This list of storages comes from the policy. A StorageList
    item was added to the policy.
    Types are automatically converted. So if you ask for a vtkm::Float64 and
    field contains a vtkm::Float32, it will the array wrapped in an
    ArrayHandleCast to give the expected type.