Closed aritra-mukhopadhyay closed 1 month ago
What version of FiPy are you running?
python -c "import fipy; print(fipy.__version__)"
This may be an issue that was reported (and fixed) a couple of months ago: #896
I am using FiPy version 3.4.3. Interestingly, I found that the problem did not arise while running it in Google Colab. In Colab, I installed FiPy via pip, whereas in my machine I am using a conda installation.
I am attaching the package list of my conda environment below if it would be helpful. environment_packages.txt
Thank you for forwarding your environment. We're delinquent in doing a release since fixing #896. Please try a git checkout of FiPy.
Thanks a lot! I can confirm that the issue was fixed by using the latest Git version of Fipy (3.4.3+5.g4db188c1), but only together with the line PETSc.garbage_cleanup()
inside the for loop (after importing: from petsc4py import PETSc
) as suggested by you in https://github.com/usnistgov/fipy/issues/896#issuecomment-1374306391.
Fixed by #898 & #899
I am running a simple code for diffusion in two dimensions, as shown below. However, the memory consumed increases quickly within the for loop, as much as 30GB RAM within a minute. Increasing the number of time steps leads it to eventually being 'Killed' since it runs out of 64GB memory. Is this because somehow the value of the target variable 'C' is stored for all time steps instead of the current one? I am quite new to FiPy, so any clue as to why this is happening would be very helpful :)
Code:
I am using Ubuntu 22.04 and a conda python 3.10 environment.