[aspect-devel] Error from violated condition on parameters

Mohamed Gouiza M.Gouiza at leeds.ac.uk
Wed Nov 23 00:11:35 PST 2016


Sorry for the bad advice.
I thought that DEBUG mode is useful to reveal errors in the code only, but not in a particular model setup...

Mohamed  

-----Original Message-----
From: Aspect-devel [mailto:aspect-devel-bounces at geodynamics.org] On Behalf Of Wolfgang Bangerth
Sent: 23 November 2016 00:45
To: aspect-devel at geodynamics.org
Subject: Re: [aspect-devel] Error from violated condition on parameters

On 11/22/2016 08:41 AM, Juliane Dannberg wrote:
>
> I would also like to add that normally it is not a good idea to just 
> run your models in optimized mode if you get an error message in debug 
> mode, because usually the error message tells you that something in 
> your code or your model setup is not working as intended, and in these 
> cases it helps to look at the setup again and fix these things.

Let me put this differently: It is a bad idea in general to run something in optimized mode if you haven't made sure that it runs without problem in debug mode -- you miss out on so many warnings and errors for bugs that are much easier to find in debug mode.

It is a *terrible* idea to run in optimized mode *if you know that there is an error in your code*. It is equivalent to seeing a warning light in your car that says that your brakes don't work, and to respond to it by disconnecting the light's power supply. Only bad things can happen to your car if you do this. Only bad results can happen if you purposefully ignore an error from ASPECT that you do not understand fully.

Best
  Wolfgang


-- 
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bangerth at colostate.edu
                            www: http://www.math.colostate.edu/~bangerth/

_______________________________________________
Aspect-devel mailing list
Aspect-devel at geodynamics.org
http://lists.geodynamics.org/cgi-bin/mailman/listinfo/aspect-devel


More information about the Aspect-devel mailing list