← Back to team overview

yade-dev team mailing list archive

[Bug 813925] Re: InteractionContainer::erase: attempt to delete non-existent interaction

 

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 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