Re: how to get an allocatable array outside of a subroutine
From: Herman D. Knoble (SkipKnobleLESS_at_SPAMpsu.DOT.edu)
Date: 08/11/04
- Next message: Ron Shepard: "Re: A question for the developers of g95"
- Previous message: glen herrmannsfeldt: "Re: why do processes wait?"
- In reply to: joel GUERRERO: "how to get an allocatable array outside of a subroutine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 11 Aug 2004 08:49:06 -0400
Joel: The code formerly posted by Michael Metcalf at:
http://ftp.cac.psu.edu/pub/ger/fortran/hdk/dyng.f90
allocates an array in a subprogram to a size specified in the main program
and then uses it in the main program. Since it is Standard Fortran 90
it should work with any compiler supporting Fortran 90 (including
the free F-Compiler).
Apologies if I misunderstood your question.
Skip Knoble
On 9 Aug 2004 14:21:08 -0700, joegi.geo@yahoo.com (joel GUERRERO) wrote:
-|Hi,
-|
-|How I can get an allocatable array outside of a subroutine (that is,
-|get the values of the allocatable array in the main program).
-|
-|I'm trying to compile the program but I always get this error:
-|
-|C:\Fortran projects\testfinal\getvertexandlements.f90(18) : Error: A
-|dummy argument name is invalid in this context. [XCOORDM]
-|real,dimension(:),allocatable::xcoordm !
-|
-|By the way I'm using compaq visual fortan
-|
-|Joel
Herman D. (Skip) Knoble, Research Associate
(a computing professional for 38 years)
Email: SkipKnobleLESS at SPAMpsu dot edu
Web: http://www.personal.psu.edu/hdk
Penn State Information Technology Services
Academic Services and Emerging Technologies
Graduate Education and Research Services
Penn State University
214C Computer Building
University Park, PA 16802-21013
Phone:+1 814 865-0818 Fax:+1 814 863-7049
- Next message: Ron Shepard: "Re: A question for the developers of g95"
- Previous message: glen herrmannsfeldt: "Re: why do processes wait?"
- In reply to: joel GUERRERO: "how to get an allocatable array outside of a subroutine"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|