Re: "actual argument keyword name"



"Mike" <SulfateIon@xxxxxxxxx> wrote in message news:fc60b34c-ddd4-44e3-9c7c-47b2e26b2d1d@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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

Like most requests for help, you are not providing enough information. In this situation, here is some of the additional information you need to provide.
* What is the complete interface for subroutine show_wbeta? I.e., what are all of the characteristics of all of the dummy arguments in the definition of subroutine show_wbeta?
* What is the data type of each of the dummy arguments?
* What are the kind type parameters of each argument?
* What arguments are arrays?
* What arguments are optional?
* Other characteristics?
* What are the calls to subroutine show_wbeta() that are causing problems? You need to provide all of the information in each troublesome call.
* What are the definitions of all of the actual arguments in each call to show_wbeta()?

--
Craig Dedo
17130 W. Burleigh Place
P. O. Box 423
Brookfield, WI 53008-0423
Voice: (262) 783-5869
Fax: (262) 783-5928
Mobile: (414) 412-5869
E-mail: <cdedo@xxxxxxxxx> or <craig@xxxxxxxxxx>

.



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)
  • "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)