I have to understand this Fortran code for coding the same in Python, but I don't get these conditionals.
#1: For example: if(n-kv)
there aren't conditions, just an integer(n-kv). How does it work?
#2: After that, there are numbers. For example: if(n-kv)30,20,20
or if(kv) 50,50,40
. What is the use of these numbers?
do 100 l=1,nbn
l1=2*l-1
no=ib(l1)
k1=no-1
kr=k1+1
do 50 j=2,ms
kv=kr+j-1
if(n-kv)30,20,20
20 tk(kr,j)=0
30 kv=kr-j+1
if(kv) 50,50,40
40 tk(kv,j)=0
50 continue
tk(kr,1)=1
100 continue
end
Note: don't care about the variables, I am just trying to understand how Fortran works with this kind of conditionals.