求问fortran大神:This name does not have a type, and must have an explicit type.怎么解决。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求问fortran大神:This name does not have a type, and must have an explicit type.怎么解决。相关的知识,希望对你有一定的参考价值。

源代码为:显示第五行( real(8) in1(n,n), S1(n,n))出错
subroutine svd(in1,S1,U,VT,n)

implicit none
external DGESVD
character JOBU, JOBVT
real(8) in1(n,n), S1(n,n)
INTEGER INFO, LDA, LDU, LDVT, LWORK, M, N,i
DOUBLE PRECISION A( n,n ), S( n ), U( n, n ),VT( n, n ), WORK(5*n)
LWORK=5*N
A=in1
JOBU ='A'
JOBVT='A'
call DGESVD( JOBU, JOBVT, N, N, A, N, S, U, N, VT, N,WORK, LWORK, INFO )

do i=1,n
S1(i,i)=S(i)
enddo
end subroutine svd

是你的n未定义,你得先定义n才能定义in1(n,n),不然fortran不知道n是多少 参考技术A

以上是关于求问fortran大神:This name does not have a type, and must have an explicit type.怎么解决。的主要内容,如果未能解决你的问题,请参考以下文章

求问大神现在做android的hotfix用哪个框架比较好

求问各路大神,openwrt编译没生成sysupgrade.bin怎么办

求问大神们,windows下应该怎么安装python的依赖库h5py,leveldb等

js问题,动态增加select里的option,求问为啥这段代码不执行?求大神指教!

用Arcgis栅格数据集转为点要素时总出问题,报错如下,该怎么解决啊,求问大神

License server system does not support this version of this feature