2023-11-09 09:37:21 +01:00
|
|
|
subroutine print_GG0W0(nBas,nO,eHF,ENuc,ERHF,SigC,Z,eGW,EcRPA,EcGM)
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Print one-electron energies and other stuff for G0W0
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
integer,intent(in) :: nBas,nO
|
2019-05-04 17:13:50 +02:00
|
|
|
double precision,intent(in) :: ENuc
|
2020-11-03 22:07:16 +01:00
|
|
|
double precision,intent(in) :: ERHF
|
2019-05-04 17:13:50 +02:00
|
|
|
double precision,intent(in) :: EcRPA
|
|
|
|
double precision,intent(in) :: EcGM
|
2020-11-03 22:07:16 +01:00
|
|
|
double precision,intent(in) :: eHF(nBas)
|
|
|
|
double precision,intent(in) :: SigC(nBas)
|
|
|
|
double precision,intent(in) :: Z(nBas)
|
|
|
|
double precision,intent(in) :: eGW(nBas)
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2023-12-31 11:35:56 +01:00
|
|
|
integer :: p
|
|
|
|
double precision :: eHOMO,eLUMO,Gap
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! HOMO and LUMO
|
|
|
|
|
2023-12-31 11:35:56 +01:00
|
|
|
|
|
|
|
eHOMO = maxval(eGW(1:nO))
|
|
|
|
eLUMO = minval(eGW(nO+1:nBas))
|
|
|
|
Gap = eLUMO-eHOMO
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Dump results
|
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-11-27 23:25:10 +01:00
|
|
|
write(*,*)' G0W0@GHF calculation '
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,'(1X,A1,1X,A3,1X,A1,1X,A15,1X,A1,1X,A15,1X,A1,1X,A15,1X,A1,1X,A15,1X,A1,1X)') &
|
2023-08-01 21:32:57 +02:00
|
|
|
'|','#','|','e_HF (eV)','|','Sig_GW (eV)','|','Z','|','e_GW (eV)','|'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
|
2020-11-03 22:07:16 +01:00
|
|
|
do p=1,nBas
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,'(1X,A1,1X,I3,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X)') &
|
2020-11-03 22:07:16 +01:00
|
|
|
'|',p,'|',eHF(p)*HaToeV,'|',SigC(p)*HaToeV,'|',Z(p),'|',eGW(p)*HaToeV,'|'
|
2023-12-03 18:47:30 +01:00
|
|
|
end do
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-12-31 11:35:56 +01:00
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0W0@GHF HOMO energy = ',eHOMO*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0W0@GHF LUMO energy = ',eLUMO*HaToeV,' eV'
|
2023-11-28 14:44:26 +01:00
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0W0@GHF HOMO-LUMO gap = ',Gap*HaToeV,' eV'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-11-28 14:44:26 +01:00
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'phRPA@G0W0@GHF total energy = ',ENuc + ERHF + EcRPA,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'phRPA@G0W0@GHF correlation energy = ',EcRPA,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') ' GM@G0W0@GHF total energy = ',ENuc + ERHF + EcGM,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') ' GM@G0W0@GHF correlation energy = ',EcGM,' au'
|
2020-09-22 15:32:26 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)
|
|
|
|
|
2023-07-28 15:00:17 +02:00
|
|
|
end subroutine
|