4
1
mirror of https://github.com/pfloos/quack synced 2024-06-29 16:34:52 +02:00
quack/src/QuAcK/print_evGF2.f90

45 lines
1.5 KiB
Fortran
Raw Normal View History

2020-03-19 10:21:18 +01:00
subroutine print_evGF2(nBas,nO,nSCF,Conv,eHF,eGF2)
2019-03-19 10:13:33 +01:00
! Print one-electron energies and other stuff for GF2
implicit none
include 'parameters.h'
integer,intent(in) :: nBas,nO,nSCF
double precision,intent(in) :: Conv,eHF(nBas),eGF2(nBas)
integer :: x,HOMO,LUMO
double precision :: Gap
! HOMO and LUMO
HOMO = nO
LUMO = HOMO + 1
Gap = eGF2(LUMO)-eGF2(HOMO)
! Dump results
write(*,*)'-------------------------------------------'
2020-03-19 10:21:18 +01:00
write(*,*)' Frequency-dependent evGF2 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)') &
2020-03-19 10:21:18 +01:00
'|','#','|','e_HF (eV)','|','e_evGF2 (eV)','|'
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------'
do x=1,nBas
write(*,'(1X,A1,1X,I3,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X)') &
'|',x,'|',eHF(x)*HaToeV,'|',eGF2(x)*HaToeV,'|'
enddo
write(*,*)'-------------------------------------------'
write(*,'(2X,A10,I3)') 'Iteration ',nSCF
write(*,'(2X,A14,F15.5)')'Convergence = ',Conv
write(*,*)'-------------------------------------------'
2020-03-19 10:21:18 +01:00
write(*,'(2X,A27,F15.6)') 'evGF2 HOMO energy (eV):',eGF2(HOMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'evGF2 LUMO energy (eV):',eGF2(LUMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'evGF2 HOMO-LUMO gap (eV):',Gap*HaToeV
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------'
write(*,*)
2020-03-19 10:21:18 +01:00
end subroutine print_evGF2