2023-11-24 15:31:29 +01:00
|
|
|
subroutine ufGW(dotest,TDA_W,nBas,nC,nO,nV,nR,nS,ENuc,ERHF,ERI,eHF)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
|
|
|
! Unfold GW equations
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
2023-11-13 17:39:30 +01:00
|
|
|
logical,intent(in) :: dotest
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
logical,intent(in) :: TDA_W
|
2021-10-18 10:10:54 +02:00
|
|
|
integer,intent(in) :: nBas
|
|
|
|
integer,intent(in) :: nC
|
|
|
|
integer,intent(in) :: nO
|
|
|
|
integer,intent(in) :: nV
|
|
|
|
integer,intent(in) :: nR
|
|
|
|
integer,intent(in) :: nS
|
|
|
|
double precision,intent(in) :: ENuc
|
|
|
|
double precision,intent(in) :: ERHF
|
|
|
|
double precision,intent(in) :: ERI(nBas,nBas,nBas,nBas)
|
|
|
|
double precision,intent(in) :: eHF(nBas)
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
integer :: p
|
2021-10-18 15:05:01 +02:00
|
|
|
integer :: s
|
2021-10-18 10:10:54 +02:00
|
|
|
integer :: i,j,k,l
|
|
|
|
integer :: a,b,c,d
|
2023-11-24 15:31:29 +01:00
|
|
|
integer :: ia,ja,kc,lc
|
2021-10-18 10:10:54 +02:00
|
|
|
integer :: klc,kcd,ija,iab
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
logical :: dRPA
|
|
|
|
integer :: ispin
|
|
|
|
double precision :: EcRPA
|
2021-10-18 10:10:54 +02:00
|
|
|
integer :: n2h1p,n2p1h,nH
|
|
|
|
double precision,external :: Kronecker_delta
|
|
|
|
double precision,allocatable :: H(:,:)
|
|
|
|
double precision,allocatable :: eGW(:)
|
2021-10-18 15:05:01 +02:00
|
|
|
double precision,allocatable :: Z(:)
|
2023-11-24 15:31:29 +01:00
|
|
|
double precision,allocatable :: Aph(:,:)
|
|
|
|
double precision,allocatable :: Bph(:,:)
|
|
|
|
double precision,allocatable :: Om(:)
|
|
|
|
double precision,allocatable :: XpY(:,:)
|
|
|
|
double precision,allocatable :: XmY(:,:)
|
|
|
|
double precision,allocatable :: rho(:,:,:)
|
|
|
|
|
|
|
|
logical :: verbose = .true.
|
|
|
|
double precision,parameter :: cutoff1 = 0.01d0
|
|
|
|
double precision,parameter :: cutoff2 = 0.01d0
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
double precision :: start_timing,end_timing,timing
|
|
|
|
|
2021-10-18 10:10:54 +02:00
|
|
|
! Output variables
|
|
|
|
|
|
|
|
! Hello world
|
|
|
|
|
|
|
|
write(*,*)
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*)'**************************************'
|
|
|
|
write(*,*)'* Restricted Upfolded GW Calculation *'
|
|
|
|
write(*,*)'**************************************'
|
2021-10-18 10:10:54 +02:00
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
! Dimension of the supermatrix
|
|
|
|
|
2023-04-12 21:41:30 +02:00
|
|
|
n2h1p = nO*nO*nV
|
2021-10-18 14:14:46 +02:00
|
|
|
n2p1h = nV*nV*nO
|
2021-10-18 10:10:54 +02:00
|
|
|
nH = nBas + n2h1p + n2p1h
|
|
|
|
|
|
|
|
! Memory allocation
|
|
|
|
|
2021-10-18 15:05:01 +02:00
|
|
|
allocate(H(nH,nH),eGW(nH),Z(nH))
|
2021-10-18 10:10:54 +02:00
|
|
|
|
|
|
|
! Initialization
|
|
|
|
|
|
|
|
H(:,:) = 0d0
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
if (TDA_W) then
|
|
|
|
|
|
|
|
! TDA for W
|
|
|
|
|
|
|
|
write(*,*) 'Tamm-Dancoff approximation actived!'
|
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
!---------------------------!
|
|
|
|
! Compute GW supermatrix !
|
|
|
|
!---------------------------!
|
|
|
|
! !
|
|
|
|
! | F V2h1p V2p1h | !
|
|
|
|
! | | !
|
|
|
|
! H = | V2h1p C2h1p 0 | !
|
|
|
|
! | | !
|
|
|
|
! | V2p1h 0 C2p1h | !
|
|
|
|
! !
|
|
|
|
!---------------------------!
|
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(start_timing)
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
!---------!
|
|
|
|
! Block F !
|
|
|
|
!---------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
H(p,p) = eHF(p)
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block V2h1p !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do j=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
ija = ija + 1
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
H(p ,nBas+ija) = sqrt(2d0)*ERI(p,a,i,j)
|
|
|
|
H(nBas+ija,p ) = sqrt(2d0)*ERI(p,a,i,j)
|
2023-11-24 15:31:29 +01:00
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block V2p1h !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
iab = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
do b=nO+1,nBas-nR
|
|
|
|
iab = iab + 1
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
H(p ,nBas+n2h1p+iab) = sqrt(2d0)*ERI(p,i,b,a)
|
|
|
|
H(nBas+n2h1p+iab,p ) = sqrt(2d0)*ERI(p,i,b,a)
|
2023-11-24 15:31:29 +01:00
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block C2h1p !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do j=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
ija = ija + 1
|
|
|
|
|
|
|
|
klc = 0
|
|
|
|
do k=nC+1,nO
|
|
|
|
do l=nC+1,nO
|
|
|
|
do c=nO+1,nBas-nR
|
|
|
|
klc = klc + 1
|
|
|
|
|
|
|
|
H(nBas+ija,nBas+klc) &
|
|
|
|
= ((eHF(i) + eHF(j) - eHF(a))*Kronecker_delta(j,l)*Kronecker_delta(a,c) &
|
|
|
|
- 2d0*ERI(j,c,a,l))*Kronecker_delta(i,k)
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block C2p1h !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
iab = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
do b=nO+1,nBas-nR
|
|
|
|
iab = iab + 1
|
|
|
|
|
|
|
|
kcd = 0
|
|
|
|
do k=nC+1,nO
|
|
|
|
do c=nO+1,nBas-nR
|
|
|
|
do d=nO+1,nBas-nR
|
|
|
|
kcd = kcd + 1
|
|
|
|
|
|
|
|
H(nBas+n2h1p+iab,nBas+n2h1p+kcd) &
|
|
|
|
= ((eHF(a) + eHF(b) - eHF(i))*Kronecker_delta(i,k)*Kronecker_delta(a,c) &
|
|
|
|
+ 2d0*ERI(a,k,i,c))*Kronecker_delta(b,d)
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
2021-10-18 10:10:54 +02:00
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(end_timing)
|
|
|
|
|
|
|
|
timing = end_timing - start_timing
|
|
|
|
write(*,*)
|
|
|
|
write(*,'(A65,1X,F9.3,A8)') 'Total wall time for construction of supermatrix = ',timing,' seconds'
|
|
|
|
write(*,*)
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
else
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
! RPA for W
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*) 'Tamm-Dancoff approximation deactivated!'
|
|
|
|
write(*,*)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
!---------------------------!
|
|
|
|
! Compute GW supermatrix !
|
|
|
|
!---------------------------!
|
|
|
|
! !
|
|
|
|
! | F W2h1p W2p1h | !
|
|
|
|
! | | !
|
|
|
|
! H = | W2h1p D2h1p 0 | !
|
|
|
|
! | | !
|
|
|
|
! | W2p1h 0 D2p1h | !
|
|
|
|
! !
|
|
|
|
!---------------------------!
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
! Memory allocation
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
allocate(Om(nS),Aph(nS,nS),Bph(nS,nS),XpY(nS,nS),XmY(nS,nS),rho(nBas,nBas,nS))
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
! Spin manifold
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
ispin = 1
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
!-------------------!
|
|
|
|
! Compute screening !
|
|
|
|
!-------------------!
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
call phLR_A(ispin,dRPA,nBas,nC,nO,nV,nR,nS,1d0,eHF,ERI,Aph)
|
|
|
|
if(.not.TDA_W) call phLR_B(ispin,dRPA,nBas,nC,nO,nV,nR,nS,1d0,ERI,Bph)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
call phLR(TDA_W,nS,Aph,Bph,EcRPA,Om,XpY,XmY)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
!--------------------------!
|
|
|
|
! Compute spectral weights !
|
|
|
|
!--------------------------!
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
call GW_excitation_density(nBas,nC,nO,nR,nS,ERI,XpY,rho)
|
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(start_timing)
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
!---------!
|
|
|
|
! Block F !
|
|
|
|
!---------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
H(p,p) = eHF(p)
|
2021-10-18 10:10:54 +02:00
|
|
|
end do
|
2023-11-24 15:31:29 +01:00
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block W2h1p !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do ja=1,nS
|
|
|
|
ija = ija + 1
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
H(p ,nBas+ija) = sqrt(2d0)*rho(p,i,ja)
|
|
|
|
H(nBas+ija,p ) = sqrt(2d0)*rho(p,i,ja)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block W2p1h !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
iab = 0
|
|
|
|
do ia=1,nS
|
|
|
|
do b=nO+1,nBas-nR
|
|
|
|
iab = iab + 1
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
H(p ,nBas+n2h1p+iab) = sqrt(2d0)*rho(p,b,ia)
|
|
|
|
H(nBas+n2h1p+iab,p ) = sqrt(2d0)*rho(p,b,ia)
|
2023-11-24 15:31:29 +01:00
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block D2h1p !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do ja=1,nS
|
|
|
|
ija = ija + 1
|
|
|
|
|
|
|
|
H(nBas+ija,nBas+ija) = eHF(i) - Om(ja)
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
!-------------!
|
|
|
|
! Block D2p1h !
|
|
|
|
!-------------!
|
|
|
|
|
|
|
|
iab = 0
|
|
|
|
do ia=1,nS
|
2021-10-18 14:14:46 +02:00
|
|
|
do b=nO+1,nBas-nR
|
2021-10-18 10:10:54 +02:00
|
|
|
iab = iab + 1
|
2023-11-24 15:31:29 +01:00
|
|
|
|
|
|
|
H(nBas+n2h1p+iab,nBas+n2h1p+iab) = eHF(b) + Om(ia)
|
|
|
|
|
2021-10-18 10:10:54 +02:00
|
|
|
end do
|
|
|
|
end do
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(end_timing)
|
|
|
|
|
|
|
|
timing = end_timing - start_timing
|
|
|
|
write(*,*)
|
|
|
|
write(*,'(A65,1X,F9.3,A8)') 'Total wall time for construction of supermatrix = ',timing,' seconds'
|
|
|
|
write(*,*)
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
end if
|
2021-10-18 10:10:54 +02:00
|
|
|
|
|
|
|
!-------------------------!
|
|
|
|
! Diagonalize supermatrix !
|
|
|
|
!-------------------------!
|
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(start_timing)
|
|
|
|
|
2021-10-18 10:10:54 +02:00
|
|
|
call diagonalize_matrix(nH,H,eGW)
|
|
|
|
|
2023-11-27 10:17:14 +01:00
|
|
|
call wall_time(end_timing)
|
|
|
|
|
|
|
|
timing = end_timing - start_timing
|
|
|
|
write(*,*)
|
|
|
|
write(*,'(A65,1X,F9.3,A8)') 'Total wall time for diagonalization of supermatrix = ',timing,' seconds'
|
|
|
|
write(*,*)
|
|
|
|
|
2021-10-18 15:05:01 +02:00
|
|
|
!-----------------!
|
|
|
|
! Compute weights !
|
|
|
|
!-----------------!
|
|
|
|
|
|
|
|
Z(:) = 0d0
|
|
|
|
do s=1,nH
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
Z(s) = Z(s) + H(p,s)**2
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
2021-10-18 10:10:54 +02:00
|
|
|
!--------------!
|
|
|
|
! Dump results !
|
|
|
|
!--------------!
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*)'---------------------------------------------'
|
|
|
|
write(*,'(1X,A45)')'| GW energies (eV) for all orbitals |'
|
|
|
|
write(*,*)'---------------------------------------------'
|
|
|
|
write(*,'(1X,A1,1X,A5,1X,A1,1X,A15,1X,A1,1X,A15,1X,A1,1X,A15,1X)') &
|
|
|
|
'|','#','|','e_QP','|','Z','|'
|
|
|
|
write(*,*)'---------------------------------------------'
|
2021-10-18 21:11:01 +02:00
|
|
|
|
|
|
|
do s=1,nH
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,'(1X,A1,1X,I5,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X)') &
|
2021-10-18 21:11:01 +02:00
|
|
|
'|',s,'|',eGW(s)*HaToeV,'|',Z(s),'|'
|
|
|
|
enddo
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*)'---------------------------------------------'
|
2021-10-18 21:11:01 +02:00
|
|
|
write(*,*)
|
2021-10-18 10:10:54 +02:00
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
if(verbose) then
|
|
|
|
|
|
|
|
do s=1,nH
|
|
|
|
|
|
|
|
if(Z(s) > cutoff1) then
|
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------'
|
2023-11-25 12:36:38 +01:00
|
|
|
write(*,'(1X,A7,1X,I3,A6,I3,A1,1X,A7,F12.6,A13,F6.4,1X)') &
|
|
|
|
'Orbital',p,' and #',s,':','e_QP = ',eGW(s)*HaToeV,' eV and Z = ',Z(s)
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------'
|
|
|
|
write(*,'(1X,A20,1X,A20,1X,A15,1X)') &
|
|
|
|
' Configuration ',' Coefficient ',' Weight '
|
|
|
|
write(*,*)'-------------------------------------------------------------'
|
|
|
|
|
|
|
|
if(p <= nO) &
|
|
|
|
write(*,'(1X,A7,I3,A16,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',p,') ',H(1,s),H(1,s)**2
|
|
|
|
if(p > nO) &
|
|
|
|
write(*,'(1X,A16,I3,A7,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',p,') ',H(1,s),H(1,s)**2
|
2023-11-25 12:36:38 +01:00
|
|
|
|
|
|
|
if(TDA_W) then
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
! TDA printing format
|
|
|
|
|
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do j=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
ija = ija + 1
|
|
|
|
|
|
|
|
if(abs(H(1+ija,s)) > cutoff2) &
|
|
|
|
write(*,'(1X,A3,I3,A1,I3,A6,I3,A7,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',i,',',j,') -> (',a,') ',H(1+ija,s),H(1+ija,s)**2
|
|
|
|
|
|
|
|
end do
|
2023-11-24 15:31:29 +01:00
|
|
|
end do
|
|
|
|
end do
|
2023-11-25 12:36:38 +01:00
|
|
|
|
|
|
|
iab = 0
|
|
|
|
do i=nC+1,nO
|
|
|
|
do a=nO+1,nBas-nR
|
|
|
|
do b=nO+1,nBas-nR
|
|
|
|
iab = iab + 1
|
|
|
|
|
|
|
|
if(abs(H(1+n2h1p+iab,s)) > cutoff2) &
|
|
|
|
write(*,'(1X,A7,I3,A6,I3,A1,I3,A3,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',i,') -> (',a,',',b,') ',H(1+n2h1p+iab,s),H(1+n2h1p+iab,s)**2
|
|
|
|
|
|
|
|
end do
|
2023-11-24 15:31:29 +01:00
|
|
|
end do
|
|
|
|
end do
|
2023-11-25 12:36:38 +01:00
|
|
|
|
|
|
|
else
|
2023-11-24 15:31:29 +01:00
|
|
|
|
2023-11-25 12:36:38 +01:00
|
|
|
! non-TDA printing format
|
|
|
|
|
|
|
|
ija = 0
|
|
|
|
do i=nC+1,nO
|
2023-11-27 10:49:13 +01:00
|
|
|
do ja=1,nS
|
2023-11-25 12:36:38 +01:00
|
|
|
ija = ija + 1
|
|
|
|
|
|
|
|
if(abs(H(1+ija,s)) > cutoff2) &
|
|
|
|
write(*,'(1X,A7,I3,A1,I3,A12,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',i,',',ja,') ',H(1+ija,s),H(1+ija,s)**2
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
iab = 0
|
|
|
|
do ia=1,nS
|
|
|
|
do b=nO+1,nBas-nR
|
|
|
|
iab = iab + 1
|
|
|
|
|
|
|
|
if(abs(H(1+n2h1p+iab,s)) > cutoff2) &
|
|
|
|
write(*,'(1X,A7,I3,A1,I3,A12,1X,F15.6,1X,F15.6)') &
|
|
|
|
' (',ia,',',b,') ',H(1+n2h1p+iab,s),H(1+n2h1p+iab,s)**2
|
|
|
|
|
|
|
|
end do
|
|
|
|
end do
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
2023-11-24 15:31:29 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------'
|
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
end if
|
|
|
|
|
|
|
|
end do
|
|
|
|
|
|
|
|
end if
|
2023-11-25 12:36:38 +01:00
|
|
|
|
2023-07-28 15:00:17 +02:00
|
|
|
end subroutine
|