以文本方式查看主题 - Fortran中文网 (http://fortran.cn/bbs/index.asp) -- Fortran语言使用经验交流 (http://fortran.cn/bbs/list.asp?boardid=2) ---- 这种错误怎么改?? (http://fortran.cn/bbs/dispbbs.asp?boardid=2&id=1815) |
-- 作者:hannibalcn -- 发布时间:2009/2/8 18:12:39 -- 这种错误怎么改?? :\\fortran\\program\\ak0\\var.for(3) : Warning: Because of COMMON, the alignment of object is inconsistent with its type [MIGANT] REAL*8 K,K0,L,LAN,MU1,MU2,MU3,NPOP,MIGANT,MUI0 -----------------------------------------^D:\\fortran\\program\\ak0\\var.for(43) : Warning: Because of COMMON, the alignment of object is inconsistent with its type [PANT] & ANT(3),YR,MIGANT(-1:300,3,4),PANT(4) 谢谢指教! |
-- 作者:tsz2008 -- 发布时间:2011/5/4 20:29:58 -- 就是原程序的第3,第43行中定义的公共数据出现数据类型不一致(标准fortran是支持这样定义的,可能是有其它原因。),你可以分开定义,如整数是整数放在一起定义,实数是实数放在一起来定义。 |