I need to analize some Fortran code
subroutine ilocz (a,b,c,n,m)
real a(n,n),b(n,m),c(n,m)
do 1 i=1,n
do 2 j=1,m
c(i,j)=0
do 3 k=1,n
3 c(i,j)=c(i,j)+a(i,k)*b(k,j)
2 continue
1 continue
return
end
In other place I'm calling this method
call ilocz (a(n11),y(2),a(n12),n,1)
I should refer to ilocz 5 variables - a, b, c, n, m . It is OK. But in first line in ilocz is declaration of arrays. They have te same name as my method arguments.
When i call ilocz i refer 5 real numbers (not arrays) to method. How it is possible? How it works?
Maybe this number is assigned to every array element ( a(11) to a(n,n) , y(2) to b(n,m) , a(n12) to c(n,m) ) or something?
Could someone explain this to me ? Thank you in advance.