yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #00694
Re: random-access container for interactions
> > 2. How to incorporate random access to Interaction*MetaEngines?
I mean, whether to ensure compatibility for containers with serial access? Or in the future to require only random-access containers?
> > and PhysicalActionVectorVector::find break a parallel computations because it resize
> > physicalActions container.
> ? It should resize only when number of bodies changes.
No. For example, try GravityEngine with pragma omp parallel. It will be crashed simulation.
That this does not happen, you must first call this function with the greatest body_id.
(workaround, to use serial GravityEngine before any parallel engine which need physicalActions).
--
Best regards, Sergei D.
Follow ups
References