yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #07972
Re: [Bug 813925] Re: InteractionContainer::erase: attempt to delete non-existent interaction
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
>
--
You received this bug notification because you are a member of Yade
developers, which is the registrant for Yade.
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
Follow ups
References