LLNL / axom

CS infrastructure components for HPC applications
BSD 3-Clause "New" or "Revised" License
158 stars 27 forks source link

Allow reshaping of `sidre::View` with array data #1459

Closed gunney1 closed 2 weeks ago

gunney1 commented 3 weeks ago

Summary

Motivation

Sidre View objects don't always have shape that we need. For example, importing a Blueprint mesh from a conduit::Node, we can get 1D arrays. To then build a mint mesh with the imported View, mint insists that the array be a 2D (Nx1) array.

This change is required in https://github.com/LLNL/axom/pull/1455. I'm separating it to help reduce the size of that PR.