-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Description
It would be really nice to be able to resize! multidimensional Arrays, even if restricted to the last dimension (because of memory layout), similarly to ElasticArrays.jl.
Background
We want to make use of adaptive mesh refinement (AMR) for our hyperbolic PDE solver package Trixi.jl. For us, the most natural data layout is given by multidimensional arrays. To use AMR, we need to resize! the last dimension of these arrays.
Needing to use ElasticArray doesn't feel completely good to me, since we also want to experiment with other array types such as PaddedMatrices.jl, see trixi-framework/Trixi.jl#166. Then, we would need to wrap an Array inside something from PaddedMatrices.jl inside something from ElasticArrays.jl - or the other way round? Is that possible at all? If we go further, this looks like it could easily explode.