sorry to ask but I simply cannot see how to remove this goto statement!
jkloop: do jk = 2, mtau - 3
it = 0
99 continue
if (it >= 10) then
...
end if
...
if (it > 0) then
...
if (iconv == 0) then
it = 99
go to 99
end if
end if
if (igrv == 1) then
...
end if
...
if (iconv == 0) then
deltau = 0.5 * deltau
it = it + 1
go to 99
end if
...
if (igrv == 1) then
...
end if
...
if (iconv == 0) then
deltau = 0.5 * deltau
it = it + 1
go to 99
end if
...
if (igrv == 1) then
...
end if
...
if (iconv == 0) then
deltau = 0.5 * deltau
it = it + 1
go to 99
end if
...
if (igrv == 1) then
...
end if
...
if (iconv == 0) then
deltau = 0.5 * deltau
it = it + 1
go to 99
end if
...
if (igrv == 1) then
...
end if
...
if (tau(jk) >= z23 .and. itau23 == 0) then
...
end if
if (zk0 >= atmass1 .and. idelm == 0) then
...
end if
if (zk0 < atmass2) exit jkloop
...
if (tau(jk) > z10) then
...
else
...
end if
end do jkloop
Obviously the dots represent other lines of code. However, none of this code impacts the goto 99 parts.
Any suggestions appreciated.