If (fdtnlayer>0 .And. fdtnlayer<nlayer) Then
iBegin = nLayer
iEnd = fdtnLayer
iStep = -1
Else If (fdtnlayer==nlayer) Then
iBegin = 1
iEnd = 0 !// 结束小于开始,则不循环
iStep = 1
Else If (tdtnlayer>0 .And. tdtnlayer<nlayer) Then
iBegin = tdtnLayer
iEnd = 1
iStep = -1
Else If (tdtnlayer==nlayer) Then
iBegin = nLayer
iEnd = 1
iStep = -1
End If
Do i = iBegin , iEnd , iStep
...
End Do
fcode 发表于 2015-4-17 10:33
[mw_shl_code=fortran,true] If (fdtnlayer>0 .And. fdtnlayer0 .And. tdtnlayer
QQ截图20150417112355.jpg (156.62 KB, 下载次数: 403)
renlu617 发表于 2015-4-17 11:17
错误 1 error #8093: A do-variable within a DO body shall not appear in a variable definition cont ...
renlu617 发表于 2015-4-17 11:28
就是会出现截图里面的情况,以前也没见过啊
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |