← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2961: Add check on body existance in GlobalStiffnessTimeStepper. Fixes LP:891540

 

Bruno Chareyre said:     (by the date of Tue, 22 Nov 2011 10:34:51 +0100)

> >
> > In fact iterator should not only jump null bodies, but also remove
> > them from container.
> >
> > By doing that, it would break the rule b=bodies[b.id], then it would need
> a redirection that is painful to maintain.

ok, so if deleting is not possible, then increment iterator until
there is something, or there is end.

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |


Follow ups

References