sega napsal(a):
>>> 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? 
>   
Please run some tests how does your container perform compared to
containers we already have. If it is roughly on par with them, random
access is a great bonus and I would be all for using only the new one.


>>> 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).
>   
Janek could comment on this, perhaps? How about
physicalActionContainerResetter, that is normally run at the beginning
of each iteration; don't you have problems there?

Vaclav


_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to