AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
536 stars 343 forks source link

`MultiFab::sum_unique` w/ a region #3869

Closed ax3l closed 5 months ago

ax3l commented 6 months ago

Discussed today, raised by @RemiLehe

For our applications, we would need a version of MultiFab::sum_unique that can be limited to a specific region (like ::max and ::setVal support it).

Suggested API:

MultiFab::sum_unique (amrex::Box const & region, int comp=0, bool local=false);

Thanks to @WeiqunZhang for volunteering to add this overload.

ax3l commented 5 months ago

Implemented via #3871