Re: [deal.II] New Assert class (Discussion)

2017-12-04 Thread Timo Heister
> Thanks for your reply. I was thinking of something like that but was not > sure how to do it in cmake. > I mean something like "make moderate". > > Can you please tell me where should I edit so that code compilation follows > from the mode given to "make". Doing this as a cmake target is somewha

Re: [deal.II] New Assert class (Discussion)

2017-12-04 Thread Wolfgang Bangerth
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 w

Re: [deal.II] New Assert class (Discussion)

2017-12-04 Thread RAJAT ARORA
Hello Timo, Thanks for your reply. I was thinking of something like that but was not sure how to do it in cmake. I mean something like "make moderate". Can you please tell me where should I edit so that code compilation follows from the mode given to "make". Thanks. On Monday, December 4, 201

Re: [deal.II] New Assert class (Discussion)

2017-12-04 Thread Timo Heister
I have seen other libraries with a release+asserts mode. I don't think having a third variant of the deal.II internals makes a lot of sense, but one could talk about having a compile option for it. If you want something like Assert() in release mode inside your programs, you could easily do someth

[deal.II] New Assert class (Discussion)

2017-12-03 Thread RAJAT ARORA
Hello all, This is more of a discussion than a question. I was wondering if there is a need for a new class which does something like Assert (Lets call it myAssert for now). Its function is as defined below. While developing an application code, once I am confident that I am not making a mist