Hi Zhekai Deng,

I had a similar problem. In the end, I just created check point files and restarted frequently.

I did find that garbage collecting helped slow the leak and, interestingly, also sped up code execution for me.

Best,

-Mike


On 6/20/17 10:39 AM, Zhekai Deng wrote:
HI All,

I think I run into some memory leak issues using trilinos as my solver both for serial and parallel case. The total memory goes up from initial around 300 MB to the my system memory limit (like 29 GB), and program stops. I have attached my example code below.

Somethings I am not sure if I implement it correctly:
1. in the example code, I basically solve multiple equations at the same time. I use list, and append my CellVarible together

2. Similar, I use list and append my equation together

3. Create coupled equation by looping through the list element, and solve this coupled equation.

4. During the solution step, I loop through the list element, and do updateOld()

The results of the numerical calculation looks correct to me, I just have this memory issue that prevent me from going longer time steps because I run out of memory.

I wonder is there any workaround/fix to this problem ?

I am using the build from Anaconda repository, default trillions solver, and my OS is Ubuntu 16.04.


_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
   [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to