Question #290947 on Yade changed: https://answers.launchpad.net/yade/+question/290947
Status: Open => Answered Jan Stránský proposed the following answer: Hi Mike, correct, please report a bug (such that we do not forget about it). Just now I am not able to say where it comes from.. cheers Jan 2016-04-14 19:02 GMT+02:00 MikeZhao <question290...@answers.launchpad.net>: > New question #290947 on Yade: > https://answers.launchpad.net/yade/+question/290947 > > There exists sever memory leaking problem when using intermediate > variables to update positions of tetraPoly in a loop: > > running the code, the memory will keep leaking: > # > a = [[0,0,0],[0,0,1],[0,1,0],[1,0,0]] > O.bodies.append(yade.utils.tetraPoly(a)) > for i in range(1000000): > b = [[0,0,0],[0,0,1],[0,1,0],[i+2,0,0]] > O.bodies[0].shape.setVertices(b) > O.bodies[0].state.ori = O.bodies[0].shape.GetOri() > O.bodies[0].state.pos = O.bodies[0].shape.GetCentroid() > O.bodies[0].state.mass = O.bodies[0].mat.density * > O.bodies[0].shape.GetVolume() > O.bodies[0].state.inertia = O.bodies[0].mat.density * > O.bodies[0].shape.GetInertia() > > > -- > You received this question notification because your team yade-users is > an answer contact for Yade. > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-users > Post to : yade-users@lists.launchpad.net > Unsubscribe : https://launchpad.net/~yade-users > More help : https://help.launchpad.net/ListHelp > -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp