Re: Syntax for passing an external function into a contained function?
- From: "James Giles" <jamesgiles@xxxxxxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 19:52:31 GMT
ferrad wrote:
> Still get the unresolved external. (Apologes for the real*8...) I
> have now:
> subroutine sub1(func)
> real*8, external :: func ! put the declaration here !!!
> x = func1(n)
> ...
> contains
> real*8 function func1(n)
> func1 = func(n)
> return
> end
See above. The internal procedure gets the declaration
of FUNC by host association and should not declare
FUNC itself.
--
J. Giles
"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare
.
- Follow-Ups:
- Re: Syntax for passing an external function into a contained function?
- From: Richard E Maine
- Re: Syntax for passing an external function into a contained function?
- References:
- Prev by Date: Re: Syntax for passing an external function into a contained function?
- Next by Date: Re: Syntax for passing an external function into a contained function?
- Previous by thread: Re: Syntax for passing an external function into a contained function?
- Next by thread: Re: Syntax for passing an external function into a contained function?
- Index(es):
Relevant Pages
|