2020-10-04 09:36:03 +02:00
|
|
|
subroutine print_RHF(nBas,nO,eHF,cHF,ENuc,ET,EV,EJ,EK,ERHF,dipole)
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Print one-electron energies and other stuff for G0W0
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
2020-10-04 09:36:03 +02:00
|
|
|
! Input variables
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2020-10-04 09:36:03 +02:00
|
|
|
integer,intent(in) :: nBas
|
|
|
|
integer,intent(in) :: nO
|
|
|
|
double precision,intent(in) :: eHF(nBas)
|
|
|
|
double precision,intent(in) :: cHF(nBas,nBas)
|
|
|
|
double precision,intent(in) :: ENuc
|
|
|
|
double precision,intent(in) :: ET
|
|
|
|
double precision,intent(in) :: EV
|
|
|
|
double precision,intent(in) :: EJ
|
|
|
|
double precision,intent(in) :: EK
|
|
|
|
double precision,intent(in) :: ERHF
|
|
|
|
double precision,intent(in) :: dipole(ncart)
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
integer :: ixyz
|
|
|
|
integer :: HOMO
|
|
|
|
integer :: LUMO
|
2019-03-19 10:13:33 +01:00
|
|
|
double precision :: Gap
|
|
|
|
|
|
|
|
! HOMO and LUMO
|
|
|
|
|
|
|
|
HOMO = nO
|
|
|
|
LUMO = HOMO + 1
|
|
|
|
Gap = eHF(LUMO)-eHF(HOMO)
|
|
|
|
|
|
|
|
! Dump results
|
|
|
|
|
|
|
|
|
|
|
|
write(*,*)
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,'(A32)') ' Summary '
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2020-10-27 12:32:05 +01:00
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' One-electron energy: ',ET + EV,' au'
|
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Kinetic energy: ',ET,' au'
|
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Potential energy: ',EV,' au'
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2020-10-27 12:32:05 +01:00
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Two-electron energy: ',EJ + EK,' au'
|
2020-11-04 14:47:45 +01:00
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Hartree energy: ',EJ,' au'
|
2020-10-27 12:32:05 +01:00
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Exchange energy: ',EK,' au'
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2020-10-27 12:32:05 +01:00
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Electronic energy: ',ERHF,' au'
|
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' Nuclear repulsion: ',ENuc,' au'
|
|
|
|
write(*,'(A32,1X,F16.10,A3)') ' RHF energy: ',ERHF + ENuc,' au'
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2020-10-27 12:32:05 +01:00
|
|
|
write(*,'(A32,1X,F16.6,A3)') ' HF HOMO energy: ',eHF(HOMO)*HaToeV,' eV'
|
|
|
|
write(*,'(A32,1X,F16.6,A3)') ' HF LUMO energy: ',eHF(LUMO)*HaToeV,' eV'
|
|
|
|
write(*,'(A32,1X,F16.6,A3)') ' HF HOMO-LUMO gap : ',Gap*HaToeV,' eV'
|
2020-10-04 09:36:03 +02:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2020-10-04 12:40:44 +02:00
|
|
|
write(*,'(A35)') ' Dipole moment (Debye) '
|
|
|
|
write(*,'(10X,4A10)') 'X','Y','Z','Tot.'
|
|
|
|
write(*,'(10X,4F10.6)') (dipole(ixyz)*auToD,ixyz=1,ncart),norm2(dipole)*auToD
|
2020-01-15 22:29:43 +01:00
|
|
|
write(*,'(A50)') '-----------------------------------------'
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
! Print results
|
|
|
|
|
|
|
|
write(*,'(A50)') '---------------------------------------'
|
|
|
|
write(*,'(A32)') 'MO coefficients'
|
|
|
|
write(*,'(A50)') '---------------------------------------'
|
2019-09-22 21:15:53 +02:00
|
|
|
call matout(nBas,nBas,cHF)
|
2019-03-19 10:13:33 +01:00
|
|
|
write(*,*)
|
|
|
|
write(*,'(A50)') '---------------------------------------'
|
|
|
|
write(*,'(A32)') 'MO energies'
|
|
|
|
write(*,'(A50)') '---------------------------------------'
|
|
|
|
call matout(nBas,1,eHF)
|
|
|
|
write(*,*)
|
|
|
|
|
|
|
|
end subroutine print_RHF
|
|
|
|
|
|
|
|
|