Re: Allocatable Components of Derived Type
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Tue, 9 Oct 2007 19:47:55 -0700
tommcd <TCMcDermott@xxxxxxxxx> wrote:
Of the four compilers tested (all compiled with default options) Intel
Fortran was the only
one which required that the local variable of the derived type be
explicitly deallocated
(via the call to delete_stack(T_local)) otherwise the memory used
increased rapidly.
Is this requirement standard conforming behavior?
1. No.
2. You can generalize that to all uses of allocatable. Allocatables
don't cause memory leaks. Unless, of course, there is a compiler bug.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: Allocatable Components of Derived Type
- From: Oskar Enoksson
- Re: Allocatable Components of Derived Type
- References:
- Allocatable Components of Derived Type
- From: tommcd
- Allocatable Components of Derived Type
- Prev by Date: Re: LNK2001 error
- Next by Date: Re: m/c Precision vs. Desired Tolerance
- Previous by thread: Allocatable Components of Derived Type
- Next by thread: Re: Allocatable Components of Derived Type
- Index(es):
Relevant Pages
|