4
1
mirror of https://github.com/pfloos/quack synced 2024-06-02 11:25:28 +02:00
quack/src/GF/print_evRGF2.f90

61 lines
2.5 KiB
Fortran
Raw Normal View History

2023-11-15 10:17:58 +01:00
subroutine print_evRGF2(nBas,nO,nSCF,Conv,eHF,Sig,Z,eGF,ENuc,ERHF,Ec)
2019-03-19 10:13:33 +01:00
2020-03-21 16:31:39 +01:00
! Print one-electron energies and other stuff for G0F2
2019-03-19 10:13:33 +01:00
implicit none
include 'parameters.h'
2020-03-21 16:31:39 +01:00
integer,intent(in) :: nBas
integer,intent(in) :: nO
integer,intent(in) :: nSCF
double precision,intent(in) :: Conv
double precision,intent(in) :: eHF(nBas)
double precision,intent(in) :: Sig(nBas)
double precision,intent(in) :: eGF(nBas)
2020-03-21 16:31:39 +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-21 16:31:39 +01:00
integer :: p
integer :: HOMO
integer :: LUMO
2019-03-19 10:13:33 +01:00
double precision :: Gap
! HOMO and LUMO
HOMO = nO
LUMO = HOMO + 1
Gap = eGF(LUMO) - eGF(HOMO)
2019-03-19 10:13:33 +01:00
! Dump results
write(*,*)'-------------------------------------------------------------------------------'
write(*,*)' Self-consistent evGF2 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-21 16:31:39 +01:00
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,'|',Sig(p)*HaToeV,'|',Z(p),'|',eGF(p)*HaToeV,'|'
2023-12-03 18:47:30 +01:00
end do
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------------------------------------------'
2019-03-19 10:13:33 +01:00
write(*,'(2X,A10,I3)') 'Iteration ',nSCF
write(*,'(2X,A14,F15.5)')'Convergence = ',Conv
2020-03-21 16:31:39 +01:00
write(*,*)'-------------------------------------------------------------------------------'
2023-11-20 17:42:50 +01:00
write(*,'(2X,A60,F15.6,A3)') 'evRGF2 HOMO energy =',eGF(HOMO)*HaToeV,' eV'
write(*,'(2X,A60,F15.6,A3)') 'evRGF2 LUMO energy =',eGF(LUMO)*HaToeV,' eV'
write(*,'(2X,A60,F15.6,A3)') 'evRGF2 HOMO-LUMO gap =',Gap*HaToeV,' eV'
write(*,*)'-------------------------------------------------------------------------------'
2023-11-20 17:42:50 +01:00
write(*,'(2X,A60,F15.6,A3)') 'evRGF2 total energy =',ENuc + ERHF + Ec,' au'
write(*,'(2X,A60,F15.6,A3)') 'evRGF2 correlation energy =',Ec,' au'
2021-03-06 23:08:43 +01:00
write(*,*)'-------------------------------------------------------------------------------'
2019-03-19 10:13:33 +01:00
write(*,*)
2023-07-12 22:37:04 +02:00
end subroutine