运行到这里下面这段时会出现“forrtl: severe (408): fort: (2): Subscript #2 of the array LAYERF has value 7076 which is greater than the upper bound of 301”。按照一位大佬教的单步调试,总是直接闪退。请问各位大佬怎么解决?
[Fortran] 纯文本查看 复制代码 open(3,file = 'inih.dat')
do i = 1,sumnode
read(3,*) (pre_inih(i,j),j = 1,2)
enddo
close(3)
do i = 1,sumnode
layerf(num_node(i,1),num_node(i,2),relayer(i)) = node(i,4)
para(num_node(i,1),num_node(i,2),relayer(i)) = para_list(i)
inih(num_node(i,1),num_node(i,2),relayer(i)) = pre_inih(i,2)
enddo
|