[问题] 副程式问题

楼主: MiyaKami (米汉堡)   2014-05-15 18:12:42
最近在学习写副程式遇到问题
麻烦各位帮忙检查,谢谢
原始码如下:
subroutine forcem(press,th1,th2,nn,n)
implicit real*8 (a-h, o-z)
dimension th1(3),th2(3),n(7)
include "C:\MSC.Software\Marc\2013.1.0\marc2013.1\common\creeps"
b=1.0d0
v=sqrt(2.0d0)
distan=v*(cptim+timinc)
xc=0.5d0*sqrt(2.0d0)*distan
yc=0.5d0*sqrt(2.0d0)*distan
xmin=xc-b/2.0d0
xmax=xc+b/2.0d0
ymin=yc-b/2.0d0
ymax=yc+b/2.0d0
press=0.0d0
if(th1(1).le.xmax.and.th1(1).ge.xmin.and.
th1(2).le.ymax.and.th1(2).ge.ymin)
^
出问题的地方
press=2.0d0
th2(1)=0.0d0
th2(2)=0.0d0
th2(3)=-1.0d0
return
end
作者: sin55688 (单手挑藏獒)   2014-05-15 19:03:00
If(*) then end if
楼主: MiyaKami (米汉堡)   2014-05-20 15:02:00
还是不行耶,是不是每行长度有上限?太长想换行要怎么办
作者: Cypresslin (啊哈哈~~)   2014-05-21 00:16:00
你的"还是不行耶"是怎么个改法与怎么个不行法XD
作者: Cypresslin (啊哈哈~~)   2014-05-21 00:17:00
另外错误讯息也该一并贴上来唷
作者: Cypresslin (啊哈哈~~)   2014-05-22 11:59:00
程式码太长囉,用&符号换行接着写吧~

Links booklink

Contact Us: admin [ a t ] ucptt.com