Comment 10 for bug 1041084

Revision history for this message
Raphaël Maurin (raphael-maurin) wrote : Re: memory leak while erasing facets

Hi all,

As asked by Anton, I report a similar problem. This is related to the question : https://answers.launchpad.net/yade/+question/253112

In the C++ code, I created an engine(HydroForceEngine) which use a variable vxFluct. In my python script, I actualize the variable vxFluct each period tau doing :
HydroForceEngine.vxFluct = X

When X is big and tau is small, there is a memory leakage : for example, with 8300 bodies (so for len(X) = 8300), after ~6500 actualization of the variable, the simulation takes about 40% of the memory of my computer; while the same code after the same time and without actualizing the variable takes 0.5% of the memory of my computer.

Raphaël