yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07977
Re: [Bug 813925] Re: InteractionContainer::erase: attempt to delete non-existent interaction
I've always seen such vector as a "must have" for a DEM code.
Vaclav was half-way to do that when he stored interactions in bodies.
RAM would be negligeable with pointers probably.
The main advantage is the convenience for some functions, like some
post-processing functions, or for removing bodies.
Performance would be the same for the simulation loop itself.
Bruno
On 20/10/11 10:26, Anton Gladky wrote:
> I was thinking about creating something like <vector>
> shared_ptr<Interaction> for each body to keep there an interaction
> list for every body.
> It will require some more RAM, but would be better for performance.
>
> Anton
>
>
>
> On Thu, Oct 20, 2011 at 10:08 AM, Chareyre <813925@xxxxxxxxxxxxxxxxxx> wrote:
>> I would say bug #780931 has been fixed twice (once in the branch, once in trunk, with two different methods).
>> Not bad in itslef, but I'm curious about the cost of this loop in BodyContainer::remove(). In the case of massive deletion, it will maybe be sensible?
>>
>> + const shared_ptr<Scene>& scene=Omega::instance().getScene();
>> + FOREACH(const shared_ptr<Interaction>& i, *scene->interactions){
>> + if((i->getId1()==id or i->getId2()==id)) {
>> + scene->interactions->requestErase(i->getId1(),i->getId2());
>> + }
>> + }
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/813925
>>
>> Title:
>> InteractionContainer::erase: attempt to delete non-existent
>> interaction
>>
>> Status in Yet Another Dynamic Engine:
>> Triaged
>>
>> Bug description:
>> The problem occurs on simulations with intensive adding/deleting particles and large number of interactions.
>> r2893 [1] did not solve the problem. The LOG_ERROR is still appears.
>>
>> [1] http://bazaar.launchpad.net/~yade-dev/yade/trunk/revision/2893
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/yade/+bug/813925/+subscriptions
>>
--
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
11, rue des Mathématiques
BP 46
38402 St Martin d'Hères, France
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________
Follow ups
References