souda
01-06-2004, 08:59 PM
I'm using the allocatable arrays in my Fortran 90 code. In each subroutine the arrays are allocated and then deallocated at the end. The code compiled with Lahey Fortran lf95 runs O.K. and there is no memory leaks or any other problems. But when I compile it with other compilers (pgf90 or Intel) I encounter a memory leak (it runs O.K. but the memory keeps expanding until the process gets killed by the system (Linux RedHat)).
Has anybody ever experienced something similar? And what might be the potential sources of memory leaks (I'm pretty sure I deallocate all the allocated arrays before exiting a subroutine)? Could it be related to the size of the physical memory? Any suggestions/comments would be greatly appreciated.
Alex
Has anybody ever experienced something similar? And what might be the potential sources of memory leaks (I'm pretty sure I deallocate all the allocated arrays before exiting a subroutine)? Could it be related to the size of the physical memory? Any suggestions/comments would be greatly appreciated.
Alex