4
1
mirror of https://github.com/pfloos/quack synced 2024-11-09 07:33:55 +01:00
quack/src/QuAcK/print_G0F3.f90

42 lines
1.4 KiB
Fortran
Raw Normal View History

2020-03-19 10:21:18 +01:00
subroutine print_G0F3(nBas,nO,eHF,Z,eGF3)
2019-03-19 10:13:33 +01:00
! Print one-electron energies and other stuff for GF3
implicit none
include 'parameters.h'
2020-03-19 10:21:18 +01:00
integer,intent(in) :: nBas,nO
double precision,intent(in) :: eHF(nBas),eGF3(nBas),Z(nBas)
2019-03-19 10:13:33 +01:00
integer :: x,HOMO,LUMO
double precision :: Gap
! HOMO and LUMO
HOMO = nO
LUMO = HOMO + 1
Gap = eGF3(LUMO)-eGF3(HOMO)
! Dump results
write(*,*)'-------------------------------------------------------------'
2020-03-19 10:21:18 +01:00
write(*,*)' Frequency-dependent G0F3 calculation'
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------------------------'
write(*,'(1X,A1,1X,A3,1X,A1,1X,A15,1X,A1,1X,1X,A15,1X,A1,1X,A15,1X,A1,1X)') &
2020-03-19 10:21:18 +01:00
'|','#','|','e_HF (eV)','|','Z','|','e_G0F3 (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,F15.6,1X,A1,1X)') &
'|',x,'|',eHF(x)*HaToeV,'|',Z(x),'|',eGF3(x)*HaToeV,'|'
enddo
write(*,*)'-------------------------------------------------------------'
2020-03-19 10:21:18 +01:00
write(*,'(2X,A27,F15.6)') 'G0F3 HOMO energy (eV):',eGF3(HOMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'G0F3 LUMO energy (eV):',eGF3(LUMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'G0F3 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_G0F3