yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00703
Re: random-access container for interactions
> 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.
Not once! It is doing resizing in each case when body_id > physicalActions.size()!!
So, in a parallel loop a first thread will be crash because a second thread (with greatest body ids)
will doing resizing on each loop iteration. Although this is happens only at the first iteration simulation... so only once.
--
Best regards, Sergei D.
References