little_kar 发表于 2017-3-1 22:24:39

关于数组越界的问题

总是不断遇到这个问题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:37

一定是越界。
学会单步调试吧,你能解决99%的运行时错误
http://debug.w.fcode.cn
http://v.fcode.cn/video-debugger.html
页: [1]
查看完整版本: 关于数组越界的问题