2023-08-01 21:32:57 +02:00
|
|
|
subroutine print_G0F2(nBas,nO,eHF,Sig,eGF,Z,ENuc,ERHF,Ec)
|
2020-03-19 10:21:18 +01:00
|
|
|
|
|
|
|
! Print one-electron energies and other stuff for G0F2
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
integer,intent(in) :: nBas
|
|
|
|
integer,intent(in) :: nO
|
|
|
|
double precision,intent(in) :: eHF(nBas)
|
2020-03-21 16:31:39 +01:00
|
|
|
double precision,intent(in) :: Sig(nBas)
|
2023-08-01 21:32:57 +02:00
|
|
|
double precision,intent(in) :: eGF(nBas)
|
2020-03-19 10:59:20 +01:00
|
|
|
double precision,intent(in) :: Z(nBas)
|
2021-03-06 23:08:43 +01:00
|
|
|
double precision,intent(in) :: ENuc
|
|
|
|
double precision,intent(in) :: ERHF
|
|
|
|
double precision,intent(in) :: Ec
|
2020-03-19 10:21:18 +01:00
|
|
|
|
2020-03-19 10:59:20 +01:00
|
|
|
integer :: p
|
2020-03-19 10:21:18 +01:00
|
|
|
integer :: HOMO
|
|
|
|
integer :: LUMO
|
|
|
|
double precision :: Gap
|
|
|
|
|
|
|
|
! HOMO and LUMO
|
|
|
|
|
|
|
|
HOMO = nO
|
|
|
|
LUMO = HOMO + 1
|
2023-08-01 21:32:57 +02:00
|
|
|
Gap = eGF(LUMO) - eGF(HOMO)
|
2020-03-19 10:21:18 +01:00
|
|
|
|
|
|
|
! Dump results
|
|
|
|
|
2023-08-01 21:32:57 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,*)' One-shot G0F2 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)') &
|
|
|
|
'|','#','|','e_HF (eV)','|','Sig_GF2 (eV)','|','Z','|','e_GF2 (eV)','|'
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2020-03-19 10:59:20 +01:00
|
|
|
|
|
|
|
do p=1,nBas
|
2023-08-01 21:32:57 +02: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)') &
|
|
|
|
'|',p,'|',eHF(p)*HaToeV,'|',Sig(p)*HaToeV,'|',Z(p),'|',eGF(p)*HaToeV,'|'
|
2020-03-19 10:21:18 +01:00
|
|
|
enddo
|
|
|
|
|
2023-08-01 21:32:57 +02:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0F2 HOMO energy =',eGF(HOMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0F2 LUMO energy =',eGF(LUMO)*HaToeV,' eV'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0F2 HOMO-LUMO gap =',Gap*HaToeV,' eV'
|
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0F2 total energy =',ENuc + ERHF + Ec,' au'
|
|
|
|
write(*,'(2X,A60,F15.6,A3)') 'G0F2 correlation energy =',Ec,' au'
|
2021-03-06 23:08:43 +01:00
|
|
|
write(*,*)'-------------------------------------------------------------------------------'
|
2020-03-19 10:21:18 +01:00
|
|
|
write(*,*)
|
|
|
|
|
2023-07-12 22:37:04 +02:00
|
|
|
end subroutine
|