|
0. Fortran 是 column-major
REAL :: A(N,M)
linear addressing 是 (A(i,j),i=1,N),j=1,M), i.e., A(1,1), A(2,1), ..., A(N,1), A(1,2), A(2,2), ..., A(N,2), ..., A(1,M), A(2,M), ..., A(N,M)
1. For Fortran 77 Standard, array argument
實參(actual argument): not pass an array, but pass the address of one array element
虛參(dummy argument): 由該adress起, 做 任意的(exsplicit-shape adjustable-size) array 使用
2. 你的問題
子程序中矩阵 strainOld(nblock,6), strainNew(nblock,6) 与 主程序中矩阵 stateOld(1:nblock,12:17), stateNew(1:nblock,12:17) 对应 |
|