AMReX-Codes / amrex

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

Support size 0 BoxArrays in ParticleLocator #3949

Closed atmyers closed 1 month ago

atmyers commented 1 month ago

Handling this case gracefully is needed by the FHDeX code with the hybrid mesh / particle method. After this PR, the ParticleLocator object can be built with a size 0 BoxArray, and the resulting functor will always return false.

The proposed changes: