← Back to team overview

yade-users team mailing list archive

Re: [yade-users] Does utils.unbalancedForce() and utils.kineticEnergy() deal with deleted bodies?

 

OK, thanks Vaclav, I did not know where to look at.

Luc

2010/8/24 Václav Šmilauer <eudoxos@xxxxxxxx>

>
> > Does the latest version deal with that or is it a real bug?
> Hi Luc, thanks for reporting. The fix is trivial, it will land in trunk
> with my next commit. If you need the fix in yoru version, go to
> Shop::{unbalancedForce,kineticEnergy} and in the FOREACH loop, change
>
>        if(!b->isDynamic()) continue;
>
> to
>
>        if(!b || !b->isDynamic()) continue;
>
> Cheers, v.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>

References