Fortran Coder

标题: 关于数组越界的问题 [打印本页]

作者: little_kar    时间: 2017-3-1 22:24
标题: 关于数组越界的问题
总是不断遇到这个问题forrtl: severe (408): fort: (2): Subscript #1 of the array a(or b or c or...) has value 102 which is greater than the upper bound of 100,而且越界的值不是随机的,总是之比upper bound 多1或者2,而且,我很仔细的看了代码,并没有越界的可能,所以想问一下,出现这种断点的时候,有没有可能是其他原因引起的,而不只是数组越界?
作者: fcode    时间: 2017-3-1 22:40
一定是越界。
学会单步调试吧,你能解决99%的运行时错误
http://debug.w.fcode.cn
http://v.fcode.cn/video-debugger.html




欢迎光临 Fortran Coder (http://bbs.fcode.cn/) Powered by Discuz! X3.2