2023-11-20 17:42:50 +01:00
|
|
|
subroutine print_RG0T0eh(nBas,nO,eHF,ENuc,ERHF,SigC,Z,eGT,EcRPA,EcGM)
|
2023-06-29 18:56:01 +02:00
|
|
|
|
|
|
|
! Print one-electron energies and other stuff for G0W0
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
integer,intent(in) :: nBas,nO
|
|
|
|
double precision,intent(in) :: ENuc
|
|
|
|
double precision,intent(in) :: ERHF
|
|
|
|
double precision,intent(in) :: EcRPA
|
|
|
|
double precision,intent(in) :: EcGM
|
|
|
|
double precision,intent(in) :: eHF(nBas)
|
|
|
|
double precision,intent(in) :: SigC(nBas)
|
|
|
|
double precision,intent(in) :: Z(nBas)
|
|
|
|
double precision,intent(in) :: eGT(nBas)
|
|
|
|
|
|
|
|
integer :: p,HOMO,LUMO
|
|
|
|
double precision :: Gap
|
|
|
|
|
|
|
|
! HOMO and LUMO
|
|
|
|
|
|
|
|
HOMO = nO
|
|
|
|
LUMO = HOMO + 1
|
|
|
|
Gap = eGT(LUMO)-eGT(HOMO)
|
|
|
|
|
|
|
|
! Dump results
|
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-07-03 23:15:07 +02:00
|
|
|
write(*,*)' One-shot G0T0eh calculation'
|
2023-06-29 18:56:01 +02: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_GTeh (eV)','|','Z','|','e_GTeh (eV)','|'
|
2023-06-29 18:56:01 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
|
|
|
|
do p=1,nBas
|
|
|
|
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)') &
|
|
|
|
'|',p,'|',eHF(p)*HaToeV,'|',SigC(p)*HaToeV,'|',Z(p),'|',eGT(p)*HaToeV,'|'
|
2023-12-03 18:47:30 +01:00
|
|
|
end do
|
2023-06-29 18:56:01 +02:00
|
|
|
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-11-20 17:42:50 +01:00
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'RG0T0eh HOMO energy =',eGT(HOMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'RG0T0eh LUMO energy =',eGT(LUMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'RG0T0eh HOMO-LUMO gap =',Gap*HaToeV,' eV'
|
2023-06-29 18:56:01 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2023-11-20 17:42:50 +01:00
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'phRPA@RG0T0eh total energy =',ENuc + ERHF + EcRPA,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'phRPA@RG0T0eh correlation energy =',EcRPA,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') ' GM@RG0T0eh total energy =',ENuc + ERHF + EcGM,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') ' GM@RG0T0eh correlation energy =',EcGM,' au'
|
2023-06-29 18:56:01 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
end subroutine
|