Merge branch 'feature/FS1030-bounds-checking' into 'master'
[FS#1030] Add, use, and test DUNE_ASSERT_BOUNDS If `DUNE_CHECK_BOUNDS` is defined, `DUNE_ASSERT_BOUNDS` checks if a condition holds; otherwise, it does nothing. It is meant to be used for conditions that assure writes and reads do not occur outside of memory limits or pre-defined patterns and related conditions. Replacement for `assert` in relevant context; guarded by a single universal define rather than existing class- or module- specific ones. See merge request !17
No related branches found
No related tags found
Showing
- dune/common/boundschecking.hh 24 additions, 0 deletionsdune/common/boundschecking.hh
- dune/common/densematrix.hh 37 additions, 65 deletionsdune/common/densematrix.hh
- dune/common/densevector.hh 5 additions, 4 deletionsdune/common/densevector.hh
- dune/common/diagonalmatrix.hh 5 additions, 13 deletionsdune/common/diagonalmatrix.hh
- dune/common/fmatrix.hh 5 additions, 4 deletionsdune/common/fmatrix.hh
- dune/common/fvector.hh 11 additions, 4 deletionsdune/common/fvector.hh
- dune/common/test/CMakeLists.txt 10 additions, 0 deletionsdune/common/test/CMakeLists.txt
- dune/common/test/boundscheckingmvtest.cc 398 additions, 0 deletionsdune/common/test/boundscheckingmvtest.cc
- dune/common/test/boundscheckingoptest.cc 140 additions, 0 deletionsdune/common/test/boundscheckingoptest.cc
- dune/common/test/boundscheckingtest.cc 206 additions, 0 deletionsdune/common/test/boundscheckingtest.cc
Loading
Please register or sign in to comment