2020-11-03 22:07:16 +01:00
|
|
|
subroutine print_G0W0(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
|
|
|
|
2020-11-03 22:07:16 +01:00
|
|
|
integer :: p,HOMO,LUMO
|
2019-03-19 10:13:33 +01:00
|
|
|
double precision :: Gap
|
|
|
|
|
|
|
|
! HOMO and LUMO
|
|
|
|
|
|
|
|
HOMO = nO
|
|
|
|
LUMO = HOMO + 1
|
|
|
|
Gap = eGW(LUMO)-eGW(HOMO)
|
|
|
|
|
|
|
|
! Dump results
|
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,*)' One-shot G0W0 calculation'
|
|
|
|
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)') &
|
2020-11-03 22:07:16 +01:00
|
|
|
'|','#','|','e_HF (eV)','|','Sig_c (eV)','|','Z','|','e_QP (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,'|'
|
2019-03-19 10:13:33 +01:00
|
|
|
enddo
|
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2020-11-03 22:07:16 +01:00
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'G0W0 HOMO energy:',eGW(HOMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'G0W0 LUMO energy:',eGW(LUMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'G0W0 HOMO-LUMO gap :',Gap*HaToeV,' eV'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2020-11-03 22:07:16 +01:00
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'RPA@G0W0 total energy :',ENuc + ERHF + EcRPA,' au'
|
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'RPA@G0W0 correlation energy:',EcRPA,' au'
|
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'GM@G0W0 total energy :',ENuc + ERHF + EcGM,' au'
|
|
|
|
write(*,'(2X,A30,F15.6,A3)') 'GM@G0W0 correlation energy:',EcGM,' au'
|
2020-09-22 15:32:26 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
end subroutine print_G0W0
|
|
|
|
|
|
|
|
|