Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add asserts for bounds checking to Array1D and Array2D (AMReX-Codes#1230
) ## Summary Array1D and Array2D did not check if the index was in bounds. This adds an `AMREX_ASSERT` that catches out of bounds issues when compiled with `DEBUG = TRUE`. ## Additional background ## Checklist The proposed changes: - [ ] 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 - [ ] are described in the proposed changes to the AMReX documentation, if appropriate
- Loading branch information