(j3.2006) Finalizing subroutines question
Robert W. Numrich
rwn
Fri May 23 14:30:52 EDT 2008
If a local co-array is allocatable, it will go out of
scope at the return from the procedure. There will be
a hidden sync and a hidden call of the finalizer if it exists.
I'm a little nervous about all the hidden stuff, but it's
probably a good why to clean stuff up to prevent memory leaks.
I think it even works correctly on the Cray compiler.
-bob
On Fri, May 23, 2008 at 11:07:52AM -0700, Aleksandar Donev wrote:
> Date: Fri, 23 May 2008 11:07:52 -0700
> From: Aleksandar Donev <donev1 at llnl.gov>
> To: fortran standards email list for J3 <j3 at j3-fortran.org>
> Subject: Re: (j3.2006) Finalizing subroutines question
> Reply-To: fortran standards email list for J3 <j3 at j3-fortran.org>
>
> On Friday 23 May 2008 11:04, Jim Xia wrote:
> > when a coindexed object goes out of scope
> How can this happen---please give an example?
> Aleks
> _______________________________________________
> J3 mailing list
> J3 at j3-fortran.org
> http://j3-fortran.org/mailman/listinfo/j3
--
-bob numrich
--
Robert W. Numrich, PhD
Senior Research Associate
Minnesota Supercomputing Institute
465 Walter Library
117 Pleasant Street SE
Minneapolis, MN 55455
Tel: 612-624-4341
More information about the J3
mailing list