Skip to content

resize! for multidimensional arrays  #37900

@ranocha

Description

@ranocha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions