Re: how to debug and fix NAN values
"Benoit CHAPEROT" <[email protected]> Tue, 30 Oct 2007 13:34:31 +0000
| Newsgroups | gmane.comp.lib.ode |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have found a bug in my code, and you may have the same bug in your code. I had one friction coefficient (mu) per Geom. When two geoms collided, I was averaging their friction coefficients to find the contact's friction coefficient between the two geoms while creating the contact in the NearCallBack. Some geoms had an infinite friction coefficient, others had a finite friction coefficient. Infinite friction coefficient are treated as a special case in the ODE code. When averaging finite and infinite friction coefficients, I was getting near infinite friction coefficients, which were then not treated as special case by ODE, and produced NAN values in the solver every now and then. Benoit On 10/22/07, [email protected] <[email protected]> wrote: > > > Message: 4 > Date: Mon, 22 Oct 2007 16:57:22 +0800 > From: Hampa <[email protected]> > Subject: [ODE] how to debug and fix NAN values > To: "ODE Mailing List ((E-mail))" <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hi, > > Every now and then my simulation produces NAN values, usually during > collisions using hi velocity objects. > > In the debug build (lastets 0.9 svn checkout) I get asserts in: > ODE INTERNAL ERROR 1: assertion "bNormalizationResult" failed in > _dNormalize4() [../../include/ode/odemath.h] > > What is the recommended way to debug and fix this kind of problems? > > cheers, > hampa > > > > _______________________________________________ ODE mailing list [email protected] http://ode.org/mailman/listinfo/ode