"actual argument keyword name"
- From: Mike <SulfateIon@xxxxxxxxx>
- Date: Fri, 14 Dec 2007 17:34:35 -0800 (PST)
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
.
- Follow-Ups:
- Re: "actual argument keyword name"
- From: Gary Scott
- Re: "actual argument keyword name"
- From: Craig Dedo
- "actual argument keyword name"
- From: Terence
- Re: "actual argument keyword name"
- Prev by Date: Re: gfortran read of hex values
- Next by Date: "actual argument keyword name"
- Previous by thread: Xcode, Intel ifort and opening files
- Next by thread: "actual argument keyword name"
- Index(es):
Relevant Pages
|