- 积分
- 44
- 注册时间
- 2005-3-18
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2005-5-13 10:43:04
|
显示全部楼层
来自 日本
Re:fortran哑元传递问题
tlk(6,6)数组初值赋零是后来又改的,开始是tlk=0.0后来改成这样,在调试时就发现,当运行到i=3,j=1的时候ioc的初值就由9(正确的传递值)变为0了。此时程序就提示数组边界超出。第一次发文,写的不清楚,海涵,多谢!
=> Mostly memory related error.TO check it.
1. Use explict interface at first => To delete statcic Error.
MODULE test
subroutine dgang31(IOC,nec,cel,areal,dl,tlk)
implicit none
integer,intent(in) :: IOC,nec
......
END MODULE
2. Turn on the Debug mode when running. Open the Array and string Bounds check at running time => To delete dynamic Error. |
|