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"
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".

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


Plato is just an IDE/front end; the compiler is the Salford F95 or Salford F77 compiler.

As you have been already told, show us the code, or at least the lines that generate the compiler error messages. For instance, if "MYSUB" is the name of your subroutine, show all the lines in your source code that contain "MYSUB" in upper case, lower case or mixed case.

-- mecej4
.



Relevant Pages

  • 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)
  • Re: Jumping into block of an if construct
    ... (For that matter a clever enough compiler could replace this PUT DATA ... routine which itself executes the loops around element handling. ... Either way I think the cost of element handling will usually ... So locally based on subroutine arguments, but not on, for example, ...
    (comp.lang.fortran)
  • Re: Bus error/ segmentation fault--help?
    ... When I compile with the intel fortran compiler, ... This subroutine integrates the function y3 up one step, ... implicit double precision (a-h, o-z) ...
    (comp.lang.fortran)
  • Re: Question about name conflicts in Fortran
    ... I am hacking the g95 compiler so that it dumps the structure ... Subroutine foo ... The para after the 2nd numbered list in 16.2 covers the case where the ... One of the exceptions is "a generic name may be the ...
    (comp.lang.fortran)
  • Re: using dot_product from c++
    ... I tried to write a very simple subroutine where two vector are dot ... Assumed shape arrays are incompatible with mixed language use unless you code explicitly for the descriptor on the other side, which will be highly nonportable (even from one version of a compiler to another, let alone from one compiler to another). ... You should either not initialize the vectors or you should not use push_back but instead reference the location you wish to access directly. ... I guess maybe it arises because the misunderstandings between the codes multiply to put the memory manager out of whack. ...
    (comp.lang.fortran)