这个fortran的二维数组定义的有错吗?REAL GROUP(7,3)=(/ &0.3,0.6,1.2, &0.016,0.022,0.038, &0.016,0.022,0.035, &0.2,0.2,0.2, &0.2,0.2,0.4, &2,2,4, &9,9,9 &/)这样写行吗,也不行啊REAL,DIMENSION(3
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 21:05:48
这个fortran的二维数组定义的有错吗?REAL GROUP(7,3)=(/ &0.3,0.6,1.2, &0.016,0.022,0.038, &0.016,0.022,0.035, &0.2,0.2,0.2, &0.2,0.2,0.4, &2,2,4, &9,9,9 &/)这样写行吗,也不行啊REAL,DIMENSION(3
这个fortran的二维数组定义的有错吗?
REAL GROUP(7,3)=(/
&0.3,0.6,1.2,
&0.016,0.022,0.038,
&0.016,0.022,0.035,
&0.2,0.2,0.2,
&0.2,0.2,0.4,
&2,2,4,
&9,9,9
&/)
这样写行吗,也不行啊
REAL,DIMENSION(3,7)::group
group=(/
&0.3,0.6,1.2,
&0.016,0.022,0.038,
&0.016,0.022,0.035,
&0.2,0.2,0.2,
&0.2,0.2,0.4,
&2.0,2.0,4.0,
&9.0,9.0,9.0
&/)
报错.
错误1 error #6366: The shapes of the array expressions do not conform. [GROUP]E:\work\Fortran_prac\PartComposite_140415\Part_Composite.for19
这个fortran的二维数组定义的有错吗?REAL GROUP(7,3)=(/ &0.3,0.6,1.2, &0.016,0.022,0.038, &0.016,0.022,0.035, &0.2,0.2,0.2, &0.2,0.2,0.4, &2,2,4, &9,9,9 &/)这样写行吗,也不行啊REAL,DIMENSION(3
REAL::GROUP(7,3)=(/0.3,0.6,1.2,&
&0.016,0.022,0.038,&
&0.016,0.022,0.035,&
&0.2,0.2,0.2,&
&0.2,0.2,0.4,&
&2,2,4,&
&9,9,9/)