帮我看一下,非常感谢!!![Fortran] 纯文本查看 复制代码
real:: n=7
real,dimension(1:n)::h_scatter
real,dimension(1:n)::hp_scatter=(/0,0,0,0,0,0,0/)
real,dimension(1:n)::tp_scatter=(/0,0,0,0,0,0,0/)
real,dimension(1:n)::beox_style=(/0,0,0,0,0,1,0/)
......
do j=1,n
if (h_style(j)==1) then
h_scatter(j)=0
else if(beox_style(j)==1) then
hp_water(j-1)=h_water(j-1)+dh_pu
tp_water(j-1)=ph(pout_pu,hp_water(j-1)) (t=ph(p,h)通过压力和焓查温度语句应该如何写)
t_scatter(j)=tp_water(j-1)
h_scatter(j)=ptwater(p_heater(j),t_scatter(j))
else
h_scatter(j)=hs_heater(j)
end
end do
print*,(h_scatter(j),j=1,n)
error #6410: This name has not been declared as an array or a function. [H_SCATTER]
error #6410: This name has not been declared as an array or a function. [HP_WATER]
error #6410: This name has not been declared as an array or a function. [TP_WATER]
是否是因为当取1时j-1=0,未定义才出错
|