Re: Passing allocatable arrays as a assumed shape argument?
- From: "Michael Metcalf" <michaelmetcalf@xxxxxxxxxxxxxx>
- Date: Tue, 30 Oct 2007 18:30:18 GMT
<mischamegens@xxxxxxxxxxx> wrote in message
news:1193768593.615834.253630@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,Yes, using an assumed-shape array requires the use of an explicit interface.
I tried to pass a dynamically allocated array as an assumed shape
object to a subroutine, in GFortran:
Is there something obvious that I am overlooking?
Make your subroutine an internal procedure to the main program OR put it
into a module that the main program USEs ("Fortran 95/2003 Explained",
Section 6.3).
Regards,
Mike Metcalf
.
- Follow-Ups:
- Re: Passing allocatable arrays as a assumed shape argument?
- From: mischamegens
- Re: Passing allocatable arrays as a assumed shape argument?
- References:
- Passing allocatable arrays as a assumed shape argument?
- From: mischamegens
- Passing allocatable arrays as a assumed shape argument?
- Prev by Date: Passing allocatable arrays as a assumed shape argument?
- Next by Date: Re: Multi-platform conditional compilation
- Previous by thread: Passing allocatable arrays as a assumed shape argument?
- Next by thread: Re: Passing allocatable arrays as a assumed shape argument?
- Index(es):
Relevant Pages
|