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:
[x] fix a bug or incorrect behavior in AMReX
[ ] add new capabilities to AMReX
[ ] changes answers in the test suite to more than roundoff level
[ ] are likely to significantly affect the results of downstream AMReX users
[ ] include documentation in the code and/or rst files, if appropriate
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: