[Pw_forum] New user dealing with compilation error

Paolo Giannozzi giannozz at nest.sns.it
Tue Jun 6 21:12:57 CEST 2006

On Tuesday 06 June 2006 19:25, Chin-Cheng Su wrote:

> during the compilation, it occasionally shows the warning sign like follow
> In file geninv.f90:145
>       CALL dsvdc(a,ld,n,n,work,work(n+1),u,ld,v,ld,work(2*n+1),11,info)
>                   1
> In file geninv.f90:183
>       SUBROUTINE dsvdc(x,ldx,n,p,s,e,u,ldu,v,ldv,work,job,info)
>                         2
> Warning (155): Inconsistent types (COMPLEX(8)/REAL(8)) in actual argument
> lists at (1) and (2)
> Is it all right just leave them there and move forward?

it is all right (in this case; in general, it isn't!). You can pass a 
complex array to a subroutine as a real array with double size,
if you use "old-style" calling  sequences (i.e. you pass a pointer 
to a subroutine). Of course you can't do this if you pass an array
with the new f90 syntax. 

Paolo Giannozzi             e-mail:  giannozz at nest.sns.it
Scuola Normale Superiore    Phone:   +39/050-509876, Fax:-563513 
Piazza dei Cavalieri 7      I-56126 Pisa, Italy

More information about the users mailing list