Skip to content

new method for temporary FABs #3319

@zingale

Description

@zingale

Originally we used Elixirs for temporary FABs.

Then we switched to doing a resize, like:

FArrayBox  tmp;

...

     // inside the MFIter loop
    tmp.resize(bx, 1, The_Async_Arena());

Now AMReX can do something like:

auto tmp_fab = amrex::FArrayBox{bx, ncomps, amrex::The_Async_Arena()};

This is the new stream-ordered allocator.

We can should look into updating the code with time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions