← Back to team overview

yade-dev team mailing list archive

Re: random-access container for interactions

 

Václav S(milauer said:     (by the date of Wed, 01 Oct 2008 17:51:37 +0200)


> > Sega is right. It goes from begin() to end() so isn't resizing the
> > container. That shouldn't be a problem then.
> >   
> Right, but I thought the problem was when running gravity in parallel
> mode that if number of bodies doesn't match number of physical actions,
> then the container is resized and crashes. I don't understant why should
> gravityEngine resize physicalActions container at every iteration... ?

If GravityEngine is resizing - it is doing that only ONCE. In fact
the first engine in the loop that assigns any PhysicalAction is
responsible for this resizing.

So if we don't use GravityEngine - this will be another one, first in
the loop. I didn't check in the code right now, so it would require
some investigation.

It might be better to resize once, I dunno.

-- 
Janek Kozicki                                                         |



Follow ups

References