Group Abstract Group Abstract

Message Boards Message Boards

How to eliminate apparent memory leaks?

Posted 1 year ago

Hello, I am trying to tabulate solutions of some nonlinear algebraic equations, using FindRoot[], where the functions defining nonlinear equations are obtained by a numerical inversion of the Laplace transform. For the transform inversion I use the GWR function available from http://library.wolfram.com/infocenter/MathSource/4738/. The tabulation consist in a loop of (theoretically) independent solution acts for a number of different values of a parameter (called p in my program). It turns out that after every solution act there is an increase of the occupied memory space, which quickly leads to the memory overflow, despite the fact that I use Clear[] to release the most evident intermediate objects. I am unable to figure out the reason for this problem, among other things it is not clear to me whether the problem arises in the GWR code, or it has anything to do with FindRoot. I would appreciate any help. I am attaching a simplifed test code with a typical output showing that the amount of the apparent memory leak is ca. 2 MB in every solution act.
Leslaw

Attachments:
POSTED BY: Leslaw Bieniasz
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard