fortran pgi编译错误“错误数据类型的常量表达”

时间:2013-01-11 07:39:07

标签: compiler-errors fortran fortran90 constant-expression pgi

我有一个用Fortran编写的大型软件程序,我正在尝试编译。我收到错误:

PGF90-S-0091-Constant expression of wrong data type (main.f90: 476)
PGF90-S-0091-Constant expression of wrong data type (main.f90: 476)
PGF90-S-0091-Constant expression of wrong data type (main.f90: 476) 
0 inform,   0 warnings,   3 severes, 0 fatal for vamp

(由于某种原因,它被打印3次) 相关的行提取如下。标记了第476行,所有其他相关行包括“NTYPD”

有没有办法改变代码,以便PGI满意?或者,我可以强迫PGI对特定选项感到满意吗?

谢谢!

INTEGER :: NPLWV,MPLWV,NPLWVC,MPLWVC,NTYPD,NIOND,NIONPD,NTYPPD

CALL RD_POSCAR_HEAD(LATT_CUR, T_INFO, &
     &           NIOND,NIONPD, NTYPD,NTYPPD, IO%IU0, IO%IU6)

ALLOCATE(T_INFO%ATOMOM(3*NIOND),T_INFO%RWIGS(NTYPPD),T_INFO%ROPT(NTYPD),T_INFO%POMASS(NTYPD), & 
               T_INFO%DARWIN_V(NTYPD), T_INFO%DARWIN_R(NTYPD),T_INFO%VCA(NTYPD))


476 ALLOCATE(P(NTYPD))

0 个答案:

没有答案