Re: [Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-21 Thread Nishant
Question #660861 on Yade changed: https://answers.launchpad.net/yade/+question/660861 Status: Open => Solved Nishant confirmed that the question is solved: Dear Jan and Jérôme, Your solution and clarification solve my problem. Thanks, Nishant -- You received this question notification

Re: [Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-20 Thread Jan Stránský
Question #660861 on Yade changed: https://answers.launchpad.net/yade/+question/660861 Jan Stránský posted a new comment: Hi Nishant, > Is there a particular reason that the simulation continues with empty body fields? There are several reasons, e.g.: 1) performacne. O.bodies is internally

Re: [Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-17 Thread Nishant
Question #660861 on Yade changed: https://answers.launchpad.net/yade/+question/660861 Nishant gave more information on the question: Hi Jérôme, Thanks for the reply. I agree with your workaround solution - for b in O.bodies - would solve the problem. Is there a particular reason that the

Re: [Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-17 Thread Jérôme Duriez
Question #660861 on Yade changed: https://answers.launchpad.net/yade/+question/660861 Jérôme Duriez posted a new comment: Hello, I confirm the behavior you describe and understand your reaction. As a possible workaround remark before other answers, and because your "looping over len(O.bodies)"

[Yade-users] [Question #660861]: Length of O.bodies after erasing a body

2017-11-17 Thread Nishant
New question #660861 on Yade: https://answers.launchpad.net/yade/+question/660861 Hi, I am learning Yade and I have an issue with erase function. This erases the body and the corresponding interactions, as discussed here https://answers.launchpad.net/yade/+question/216109 However, the length