increasing memory

From: Vlad (vlad.rojanschi_at_iws.uni-stuttgart.de)
Date: 01/28/05


Date: 28 Jan 2005 08:18:13 -0800

Hi everybody
while creating a small simulation model in f95 (I am hydrologist) I
have included an already existing f77 code from an older model.
Everything worked just fine, with one exception.
During model calibration I am running the same procedures over and over
again. Except a single real value I am not saving anything from a
finished iteration. The problem is that the RAM space used by the
program increases constantly until it reaches the point where it makes
the whole thing very slow. I could find no explanation for this. I
explicitely deallocate everything that was allocated, I changed the
structure of the program so that I eliminate useless dummy arguments, I
tried all the compiler (lahey 95) options in the book. None of them had
anything to do with the problem.
The old code I included was not made to be called on and on again, so
my guess is that it somehow does not delete all the variables from the
memory after "end subroutine". Would any of you have any clue on where
the problem might be? If no explicite SAVE statements are included, all
the variables should be deleted after ending the procedure, wouldn't
they? Any other idea?
Thank you in advance
Vlad