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

45 lines
1.6 KiB
Fortran
Raw Permalink Normal View History

2020-03-19 10:21:18 +01:00
subroutine print_evGF3(nBas,nO,nSCF,Conv,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'
integer,intent(in) :: nBas,nO,nSCF
double precision,intent(in) :: Conv,eHF(nBas),eGF3(nBas),Z(nBas)
2020-03-21 16:31:39 +01:00
integer :: p,HOMO,LUMO
2019-03-19 10:13:33 +01:00
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 diagonal evGF3 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_evGF3 (eV)','|'
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------------------------'
2020-03-21 16:31:39 +01:00
do p=1,nBas
2019-03-19 10:13:33 +01:00
write(*,'(1X,A1,1X,I3,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X,F15.6,1X,A1,1X)') &
2020-03-21 16:31:39 +01:00
'|',p,'|',eHF(p)*HaToeV,'|',Z(p),'|',eGF3(p)*HaToeV,'|'
2023-12-03 18:47:30 +01:00
end do
2019-03-19 10:13:33 +01:00
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)') 'evGF3 HOMO energy (eV):',eGF3(HOMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'evGF3 LUMO energy (eV):',eGF3(LUMO)*HaToeV
write(*,'(2X,A27,F15.6)') 'evGF3 HOMO-LUMO gap (eV):',Gap*HaToeV
2019-03-19 10:13:33 +01:00
write(*,*)'-------------------------------------------------------------'
write(*,*)
2023-07-12 22:37:04 +02:00
end subroutine