[Fortran] 纯文本查看 复制代码
call dpotrf(uplo,nsum,M_sum,nsum,info1) !The Cholesky factorization of the mass matrix
call dsygst(itype,uplo,nsum,K_sum,nsum,M_sum,nsum,info2) !Reduces a generalized eigenvalue problem to the standard form
call dsyevr(jobz,range,uplo,nsum,K_sum,nsum,vl,vu,il,iu,abstol,f_m,Eig_getw,Eig_getz, &
nsum,isuppz,Eig_work,lwork,iwork,liwork,info3)
lwork=min(Lwmax,int(Eig_work(1)))
liwork=min(Lwmax,iwork(1))
call dsyevr(jobz,range,uplo,nsum,K_sum,nsum,vl,vu,il,iu,abstol,f_m,Eig_getw,Eig_getz, &
nsum,isuppz,Eig_work,lwork,iwork,liwork,info4) !Eigenvalue solution