"actual argument keyword name"



Hi

I have an error message after compiled using Compaq Visual Fortran
6.6.C:
Error: This is an actual argument keyword name, and not a dummy
argument name. [SV]

call show_wbeta(sV=sV,Sg=Sg,As=As,Ext=Ext,Sc=Sc)

where sV is the derived type defined in a module, Sg, As, and Ext and
Sc are all assumed-shape dummy arrays. These dummy arguments are all
optional in subroutine show_wbeta, which is in some module, such as:

subroutine show_wbeta(sV,s,Sg_,As_,Ext_,Sc_,Sg,As,Ext,Sc)
where sV,s,Sg_,As_,Ext_,Sc_,Sg,As,Ext,Sc are all optional dummy
arguments. sV and s are derived types.

Of course I use that module containg "subroutine show_wbeta" when I
"call show_wbeta". And certainly the actual arguments all correspond
to the same type and array shape.

I don't understand what "actual argument keyword name" means.
I have intentionally modify the name of sV (the first one) into sV_ in
subroutine show_wbeta. Then error messages show the same ones except
[SV_]. So "actual argument keyword name" means the keyword name,
right? (I mean the first sV).

I have checked the keyword name can be the same as actual argument.

In fact, every arguments in the call have the same errors.

Could somebody tell me why?

Mike
.



Relevant Pages

  • Re: "actual argument keyword name"
    ... I have an error message after compiled using Compaq Visual Fortran ... Sc are all assumed-shape dummy arrays. ... Of course I use that module containg "subroutine show_wbeta" when I ... I don't understand what "actual argument keyword name" means. ...
    (comp.lang.fortran)
  • Re: "actual argument keyword name"
    ... I have an error message after compiled using Compaq Visual Fortran ... Sc are all assumed-shape dummy arrays. ... Of course I use that module containg "subroutine show_wbeta" when I ... I don't understand what "actual argument keyword name" means. ...
    (comp.lang.fortran)
  • Re: Error: actual dummy arguments
    ... I call a subroutine with some optional arguments. ... This is an actual argument keyword name, and not a dummy ... call statement and the signature of the called routine, ...
    (comp.lang.fortran)
  • Re: variable length strings
    ... Whenever I see any length *OTHER* than * for a character ... dummy argument, I am instantly alert to problems. ... from the subroutine, along with the error message. ...
    (comp.lang.fortran)
  • Re: Computer programmers habits in electronics
    ... >>> Methinks you have been programming Fortran or LISP too much. ... On all processors, do something, but loop. ... > and why did it require creating a new keyword? ... causes all processors to print an error message, ...
    (sci.electronics.design)