Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-03 Thread Jan Stránský
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 Jan Stránský posted a new comment: > how can I fix it? no idea :-) Jan -- You received this question notification because your team yade-users is an answer contact for Yade.

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-03 Thread azim
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 azim posted a new comment: Hi Jan thank you. I will report a bug. you solved my problem in this case, but I don't know how it is marked as solved by Azim (me), how can I fix it? thanks Azim -- You received

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-03 Thread Jan Stránský
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 Jan Stránský posted a new comment: Hi Azim, In general, updating len(O.bodies) after erasing bodies / on request is possible, but you would need to modify the C++ source. The change would most likely break

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-02 Thread azim
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 azim posted a new comment: sorry for the stupid mistake I made. Hi Jan for being more specific I need to open new thread. it is an other problem. for closing current thread: I need to be sure about erasing.

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-02 Thread azim
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 Status: Needs information => Solved azim confirmed that the question is solved: Hi Jan Hi Jan for being more specific I need to open new thread. it is an other problem. before closing current thread: I

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-02 Thread Jan Stránský
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 Jan Stránský requested more information: > Their existence as a None/nullptr will be a problem for me in next parts of my simulation. again, please be more specific, I am pretty sure that there would be a

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-01 Thread azim
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 azim posted a new comment: Hi Jan thanks for your reply. >>please specify your problem, I did not find any in your description.. I want to update len(O.bodies) after erasing some of particles. Their

Re: [Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-01 Thread Jan Stránský
Question #669845 on Yade changed: https://answers.launchpad.net/yade/+question/669845 Status: Open => Needs information Jan Stránský requested more information: Hi Azim, > but neither of them solve my problem please specify your problem, I did not find any in your description.. Unchanged

[Yade-users] [Question #669845]: uodate len(O.bodies) after erasing particles

2018-06-01 Thread azim
New question #669845 on Yade: https://answers.launchpad.net/yade/+question/669845 Dear all I deleted some particles in my simulation. Particles and their interactions are erased without a problem. But the length of O.bodies is the same as before deletion. I did that with looping over bodies