Re: fortran95 error



ron wrote:
On Aug 31, 6:28 pm, "Dr Ivan D. Reid" <Ivan.R...@xxxxxxxxxxxx> wrote:
On Fri, 31 Aug 2007 10:01:26 -0700, ron <jelaimartr...@xxxxxxxxx>
wrote in <1188579686.746611.95...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:

I would like to seek your opinion on my program error that I stuck
right now.The
error is " attempt to call a subroutine as if it were a real (kind=1)
function"
....

You should tell us details of operating system and compiler version
for best help. At a guess you are using a subroutine like:

x = subrt (y,z)

instead of

call subrt(y,z)

or perhaps you've mislabelled a function

subroutine funct(a,b)

when you meant

real function funct(a,b)

....

i'm using Plato3 wersion 3.30 (silverfrost lmt 2007)

While Dr. Reid made two very good guesses, if one of those two isn't the solution, what would be of more help would to post the code segment that demonstrates the error -- the declarations of the function/subroutine and the call or referencing statement at a minimum, ideally a minimum compilable section that illustrates the problem...

--
.



Relevant Pages

  • Re: Problem with array size
    ... Ron gave some hints as to how to solve the problem. ... The Adeclaration here is an f77-style one known as assumed size. ... that does *NOT* mean that this is known in the subroutine. ... It means that the shape information ...
    (comp.lang.fortran)
  • Re: Problem with array size
    ... > Ron gave some hints as to how to solve the problem. ... > The Adeclaration here is an f77-style one known as assumed size. ... that does *NOT* mean that this is known in the subroutine. ... It means that the shape information ...
    (comp.lang.fortran)
  • Re: Scope
    ... Ron S. asked what I meant by "external." ... subroutine nor a module subroutine, but a subroutine that is (or ... * Any use of tradenames does not constitute a NOAA endorsement. ...
    (comp.lang.fortran)
  • Re: Clicking on a button on form from VBA
    ... "Ron" wrote in message ... > If I have a subroutine in a module that does NOT belong to a form, ... > a way to press a button on the form (or invoke a routine that is in the ...
    (microsoft.public.access.forms)