Changes where destination data is allocated when importing array from Conduit. Currently, data is allocated on host. New, data is allocated using the allocator of the parent Group.
Adds unit test for importing into a specific allocator id.
Without this change, it is still possible to re-allocate data after the import, but that would require walking a Group hierarchy to look for View's with data and re-allocating them individually. The new behavior is consistent with the behavior when deep-copying from a Sidre source.
Motivation
This change was needed in the work to support Blueprint meshes in shaping, https://github.com/LLNL/axom/issues/1452. I wanted to separate it to keep that PR as clean as possible.
Summary
Group
.Without this change, it is still possible to re-allocate data after the import, but that would require walking a
Group
hierarchy to look forView
's with data and re-allocating them individually. The new behavior is consistent with the behavior when deep-copying from a Sidre source.Motivation
This change was needed in the work to support Blueprint meshes in shaping, https://github.com/LLNL/axom/issues/1452. I wanted to separate it to keep that PR as clean as possible.