- 积分
- 4
- 注册时间
- 2002-5-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
program fortest1
implicit none
double precision s(4),t(4),s2,t2,ss,tt,st,stt,sst,st2,ls(9),lt(9),wg(4),tg(4),sg(4),g
integer i,j
! Variables
! Body of fortest1
DATA LS/-1.0d0,1.0d0,1.0d0,-1.0d0,0.0d0,1.0d0,0.0d0,-1.0d0,0.0d0/,LT/-1.0d0,-1.0d0,1.0d0,1.0d0,-1.0d0,0.0d0,1.0d0,0.0d0,0.0d0/
DATA S/-0.50d0,0.50d0,0.50d0,-0.50d0/,T/-0.50d0,-0.50d0,0.50d0,0.50d0/
G = 1.0d0/SQRT(3.00d0)
DO 21 I = 1,4
SG(I) = G*LS(I)
TG(I) = G*LT(I)
21 WG(I) = 1.0d0
do 22 j=1,4
s=sg(j)
t=tg(j)
S2=S*2.d0
T2=T*2.d0
SS=S*S
TT=T*T
ST=S*T
STT=S*T*T
SST=S*S*T
22 ST2=S*T*2.d0
end program fortest1
编译的时候总是出现这样的错误:
~fortest1.f90(35) : Error: The shapes of the array expressions do not conform. [S2]
S2=S*2.d0
------^
~fortest1.f90(36) : Error: The shapes of the array expressions do not conform. [T2]
T2=T*2.d0
------^
~fortest1.f90(37) : Error: The shapes of the array expressions do not conform. [SS]
SS=S*S
------^
~fortest1.f90(38) : Error: The shapes of the array expressions do not conform. [TT]
TT=T*T
------^
~fortest1.f90(39) : Error: The shapes of the array expressions do not conform. [ST]
ST=S*T
------^
~fortest1.f90(40) : Error: The shapes of the array expressions do not conform. [STT]
STT=S*T*T
------^
~fortest1.f90(41) : Error: The shapes of the array expressions do not conform. [SST]
SST=S*S*T
------^
~fortest1.f90(42) : Error: The shapes of the array expressions do not conform. [ST2]
22 ST2=S*T*2.d0
--------^
这是什么原因,怎么改,谢谢!!!! |
|