thanks, I seem to understand your explanation. If I want to get my value, I must specify the dimension of array ary when calling subroutine subcc, such as CALL subcc(ary(1:5,1:n),5,n) or CALL subcc(ary(:,1:6),10,6). If I pass array ary into subroutine subcc with 'CALL subcc(ary,5,n) or...