real function get_mapdata(i,j,tile)
……
if(j>nCol.OR.j<1)then
write(*,"('j输入错误')")!程序运行在这里卡住
stop
else
get_mapdata=a(j)
end if
return
END
subroutine get_mapdata(i,j,tile,h)
……
if(j>nCol.OR.j<1)then
write(*,"('j输入错误')")
stop
else
h=a(j)
end if
return
END
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |