dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17483
Re: CGAL error
-
To:
Anders Logg <logg@xxxxxxxxx>
-
From:
Niclas Jansson <njansson@xxxxxxxxxx>
-
Date:
Wed, 10 Feb 2010 11:04:57 +0100
-
Cc:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<20100210095000.GA2379@olorin> (Anders Logg's message of "Wed\, 10 Feb 2010 10\:50\:01 +0100")
-
User-agent:
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Anders Logg <logg@xxxxxxxxx> writes:
> On Wed, Feb 10, 2010 at 09:31:06AM +0000, Garth N. Wells wrote:
>> I get occasionally get a CGAL error when running DOLFIN:
>>
>> terminate called after throwing an instance of 'CGAL::Assertion_exception'
>> what(): CGAL ERROR: assertion violation!
>> Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
>> File: /home/garth/local/include/CGAL/Interval_nt.h
>> Line: 158
>> Explanation: Wrong rounding: did you forget the -frounding-math option
>> if you use GCC?
>> ==10917==
>>
>> It typically arises when trying to run inside a debugger, etc. Has
>> anyone else seen this? I do compile with '-frounding-math'.
>>
>> Garth
>
> Yes, I've seen this too when trying to debug some code. It's quite
> annoying. It's somewhat similar to PETSc in that CGAL seems to go in
> and catch errors and prevent debugging. I don't know what to do about
> it.
>
> --
> Anders
You can disable these checks by recompiling CGAL,
http://www.cgal.org/Manual/3.3/doc_html/Developers_manual/Developers_manual/Chapter_checks.html#Section_5.2
As for PETSc, the command line argument '-no_signal_handler' removes
most of the annoying stuff.
Niclas
Attachment:
pgpU30DJZWk_x.pgp
Description: PGP signature
Follow ups
References