早教吧 育儿知识 作业答案 考试题库 百科 知识分享

Fortran编译,max函数出问题,Thisnamedoesnothaveatype,andmusthaveanexplicittype.[MAX]错误2error#6404:Thisnamedoesnothaveatype,andmusthaveanexplicittype.[MAX]相关代码如下:DoubleprecisionPhiXM(-md:Nx+md,-md:Ny+md

题目详情
Fortran编译,max函数出问题,This name does not have a type,and must have an explicit type.[MAX]
错误 2 error #6404:This name does not have a type,and must have an explicit type.[MAX]
相关代码如下:
Doubleprecision PhiXM(-md:Nx+md,-md:Ny+md)
Doubleprecision MaxPhiXM
Do ix = 0 ,Nx
Do iy = 0,Ny
MaxPhiXM = Max(Abs(PhiXM(ix-3:ix+3,iy)))
End Do
End Do
▼优质解答
答案和解析
s name does not have a type,and must have an explicit typ