Aleksandar Donev writes:
> I do not have the Fortran 95 standard and cannot find details on the
> automatic deallocation of allocatable local arrays upon return from
> procedures in my copy of the "Fortran 95 handbook". If I want to write a
> routine that will allocate space and make this space say available to a
> C program, how do I prevent automatic deallocation of the allocated
> space to occur upon return from the procedure? Will a TARGET attribute
> on the allocatable array help? Or do I have to make it an array pointer?
The SAVE attribute is what you want.
--
Richard Maine | Good judgment comes from experience;
[log in to unmask] | experience comes from bad judgment.
| -- Mark Twain
|