One solution could be having a new mode : like *debug* and *release*,
"*Moderate*" mode, where only user-defined myAsserts + AsserThrow will
be checked.
*So when build in moderate mode*: myAssert (+ Asserthrow) would work
like "Assert". This is just to avoid huge overhead that debug mode will
cause because of all internal checks.
*When built in release mode*: No myAssert would be checked. (AssertThrow
will still be active).
Rajat -- your request is reasonable, and as Timo pointed out easy to
implement in user projects.
I think I wouldn't like this in the library because it encourages people
to not run deal.II in debug mode. We know that the majority of bugs are
found in debug mode, and so it seems like an invitation to make mistakes
to discourage people from running in debug mode.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: bange...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.