bug-mcsim
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible integration problem with v5.1 and v5.2


From: Frederic Y . Bois
Subject: Re: possible integration problem with v5.1 and v5.2
Date: Mon, 22 Sep 2008 09:34:42 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Frederic Y. Bois <frederic.bois <at> ineris.fr> writes:

> 
> You may encounter problems when integrating a set of differential equations: 
> with a very dense scheduling of output or input function discontinuities, 
> the integrator may get stuck at a stopping point and does not advance past 
> it. 
> This seems to happen only when the code is compiled with the optimization 
> option on ...


The problem mentioned on my March 25, 2008 message comes from the fact that 
registers in some systems are slightly more larger than doubles in memory. 
Compiled code moves values between memory and floating point registers at its 
convenience, and moving them into memory truncates them. 

One way to fix the problem (I checked that it works) is to compile the MCSim
library (i.e. the content of the sim/ directory) with the "-ffloat-store" 
option.

The code may run a bit slower though, but at least it runs correctly.

Frederic







reply via email to

[Prev in Thread] Current Thread [Next in Thread]