yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16331
Re: [Question #660590]: Loading and manipulating a saving file
Question #660590 on Yade changed:
https://answers.launchpad.net/yade/+question/660590
amir posted a new comment:
Hi Jérôme,
>>> As another note which was not mentioned until now, I think it's also important to realize that O.bodies.erase(b) will delete b's interactions in a next step, according to the doc:
https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.BodyContainer.erase
So, this could be the reason that in the 1st iteration of 2nd
simulation I see interaction instead of 2.
>>It actually seems to me there is some unnecessary redundancy (like in this present sentence) using at the same time O.bodies.erase(), O.bodies.clear() and O.reset()
I agree. I forgot to remove O.bodies.erase(), O.bodies.clear(). I tried
the code without O.bodies.erase(), O.bodies.clear() and It works.
Thanks
--
You received this question notification because your team yade-users is
an answer contact for Yade.