Hi Daniel,

Thank you so much for your suggestion. In the early testing, it works when I turn off the viewers and replace with TSVViewer. I just wonder if there is more convenient way to record the result (or animation) without the complicated re-building process. Thanks again.

Regards,

Kundar


Quoting Daniel Wheeler <[EMAIL PROTECTED]>:

Hi Kundar,

Thanks for the email. The problem could well be a memory leak. Check that you are not creating Variable objects within a loop. Sometimes, recursive creation of Variables can be problematic, but the error message would be a little different. Still worth checking though. Also, run with the viewers turned off. I've experienced memory leak issues with some of the viewers. When you run the code, check to see the memory usage with "top" or something else. It should then be clear whether there is a leak.

Hope the above helps.


On May 3, 2007, at 4:10 PM, [EMAIL PROTECTED] wrote:


Hello all,

I got a technical problem while I ran fipy to solve Cahn-Hilliard equation. The elements is 30625 and dt=1. When the program ran at step 844, it terminates with the error message:

Traceback (most recent call last):
File "C:\Python24\FiPy-1.2\data\DKS\Sizmann-regular fiber\present- test\Sizmann-regular fiber-keep2.py", line 124, in ?
   eqch.solve(var, boundaryConditions = BCs, solver = solver, dt = dt)
File "C:\Python24\Lib\site-packages\fipy\terms\term.py", line 121, in solve
   matrix, RHSvector = self.__buildMatrix(var, boundaryConditions, dt)
File "C:\Python24\Lib\site-packages\fipy\terms\term.py", line 88, in __buildMatrix
   return self._buildMatrix(var, boundaryConditions, dt)
File "C:\Python24\Lib\site-packages\fipy\terms\binaryTerm.py", line 64, in _buildMatrix matrix, RHSvector = self.term1._buildMatrix(var, boundaryConditions, dt = dt) File "C:\Python24\Lib\site-packages\fipy\terms\binaryTerm.py", line 64, in _buildMatrix matrix, RHSvector = self.term1._buildMatrix(var, boundaryConditions, dt = dt) File "C:\Python24\Lib\site-packages\fipy\terms\binaryTerm.py", line 68, in _buildMatrix
   matrix = self._operator()(matrix,termMatrix)
File "C:\Python24\Lib\site-packages\fipy\terms\binaryTerm.py", line 89, in <lambda>
   return lambda a,b: a - b
File "C:\Python24\Lib\site-packages\fipy\tools\sparseMatrix.py", line 172, in __sub__
   L.shift(-1, other._getMatrix())
MemoryError


May someone know what's problem, and how can I fix it?

Thanks and Regards,

Kundar



--
Daniel Wheeler






Reply via email to