Re: fortran95 error



On Fri, 31 Aug 2007 10:01:26 -0700, ron <jelaimartra73@xxxxxxxxx>
wrote in <1188579686.746611.95940@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"
and I dont really understand what it means since I just started to
learn it.Can
you advice me on this matter..

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)

--
Ivan Reid, School of Engineering & Design, _____________ CMS Collaboration,
Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".
.



Relevant Pages

  • Re: help with module
    ... should be available to all other prgrams; ... The "protected" attribute was a good idea, dont give up too early. ... end subroutine set_speed_of_light ... except when explicitly calling set_speed_of_light. ...
    (comp.lang.fortran)
  • Re: Function result differs from same code for subroutine
    ... I dont think I was clear enough... ... Am in the middle of developing this but I happend on this problem as I ... SpecialCellslike the subroutine does, ... its doing my head in. ...
    (microsoft.public.vb.general.discussion)
  • Re: UNIVERSAL::can function failing under heavy load
    ... I dont' see how ... > that would cause this particular problem, but I'd fix it anyway just in ... subroutine so that recursive calls to _deep_copy will be accessing the ... same version of @Deep_copy_stack to prevent infinite recursion in the ...
    (comp.lang.perl.modules)
  • Re: fortran95 error
    ... and I dont really understand what it means since I just started to ... You should tell us details of operating system and compiler version ... At a guess you are using a subroutine like: ... x = subrt ...
    (comp.lang.fortran)
  • Re: DPROD issues
    ... a switch like that typically ... makes a compiler nonstandard in that mode. ... treatment of specific intrinsics is one ... subroutine sub1a ...
    (comp.lang.fortran)