[Pw_forum] [sum_band.o] Error 1

Paolo Giannozzi giannozz at democritos.it
Mon May 2 08:38:09 CEST 2011


On May 2, 2011, at 8:20 , B. Koa wrote:

>   CALL sym_rho ( nspin_mag, rho%of_g(1,1) )
>                             1
> Error: Element of assumed-shaped or pointer array passed to array  
> dummy argument 'rhog' at (1)
> sum_band.f90:187.48:
>
>      IF (.NOT. gamma_only) CALL sym_rho( nspin, rho%kin_g(1,1) )
>                                                 1
> Error: Element of assumed-shaped or pointer array passed to array  
> dummy argument 'rhog' at (1)
> make[1]: *** [sum_band.o] Error 1

your version of gfortran doesn't like the above syntax, that seems to  
me,
and to all other compilers, perfectly legitimate. Anyway: just replace
  rho%of_g(1,1) with  rho%of_g and  rho%kin_g(1,1) with  rho%kin_g.
Also see http://qe-forge.org/scm/browser.php?group_id=10, revision 7681

P.
---
Paolo Giannozzi, Dept of Chemistry&Physics&Environment,
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy
Phone +39-0432-558216, fax +39-0432-558222






More information about the Pw_forum mailing list