2023-07-04 10:44:20 +02:00
|
|
|
subroutine GW_renormalization_factor(COHSEX,eta,nBas,nC,nO,nV,nR,nS,e,Omega,rho,Z)
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Compute renormalization factor for GW
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
2019-10-24 08:07:31 +02:00
|
|
|
logical,intent(in) :: COHSEX
|
2019-09-22 21:15:53 +02:00
|
|
|
double precision,intent(in) :: eta
|
2021-12-17 11:41:40 +01:00
|
|
|
integer,intent(in) :: nBas
|
|
|
|
integer,intent(in) :: nC
|
|
|
|
integer,intent(in) :: nO
|
|
|
|
integer,intent(in) :: nV
|
|
|
|
integer,intent(in) :: nR
|
|
|
|
integer,intent(in) :: nS
|
2019-09-22 21:15:53 +02:00
|
|
|
double precision,intent(in) :: e(nBas)
|
|
|
|
double precision,intent(in) :: Omega(nS)
|
|
|
|
double precision,intent(in) :: rho(nBas,nBas,nS)
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
2021-12-17 11:41:40 +01:00
|
|
|
integer :: p,i,a,jb
|
2019-03-19 10:13:33 +01:00
|
|
|
double precision :: eps
|
|
|
|
|
|
|
|
! Output variables
|
|
|
|
|
|
|
|
double precision,intent(out) :: Z(nBas)
|
|
|
|
|
2019-09-22 21:15:53 +02:00
|
|
|
! Initialize
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2019-09-22 21:15:53 +02:00
|
|
|
Z(:) = 0d0
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2019-10-24 08:07:31 +02:00
|
|
|
! static COHSEX approximation
|
|
|
|
|
|
|
|
if(COHSEX) then
|
|
|
|
|
|
|
|
Z(:) = 1d0
|
|
|
|
return
|
2020-09-22 22:13:51 +02:00
|
|
|
|
|
|
|
else
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Occupied part of the correlation self-energy
|
|
|
|
|
2021-12-17 11:41:40 +01:00
|
|
|
do p=nC+1,nBas-nR
|
2019-03-19 10:13:33 +01:00
|
|
|
do i=nC+1,nO
|
2021-12-17 11:41:40 +01:00
|
|
|
do jb=1,nS
|
|
|
|
eps = e(p) - e(i) + Omega(jb)
|
|
|
|
Z(p) = Z(p) - 2d0*rho(p,i,jb)**2*(eps/(eps**2 + eta**2))**2
|
2019-10-24 08:07:31 +02:00
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Virtual part of the correlation self-energy
|
|
|
|
|
2021-12-17 11:41:40 +01:00
|
|
|
do p=nC+1,nBas-nR
|
2019-03-19 10:13:33 +01:00
|
|
|
do a=nO+1,nBas-nR
|
2021-12-17 11:41:40 +01:00
|
|
|
do jb=1,nS
|
|
|
|
eps = e(p) - e(a) - Omega(jb)
|
|
|
|
Z(p) = Z(p) - 2d0*rho(p,a,jb)**2*(eps/(eps**2 + eta**2))**2
|
2019-10-24 08:07:31 +02:00
|
|
|
end do
|
|
|
|
end do
|
|
|
|
end do
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2020-09-22 22:13:51 +02:00
|
|
|
end if
|
2019-03-19 10:13:33 +01:00
|
|
|
|
|
|
|
! Compute renormalization factor from derivative of SigC
|
|
|
|
|
2019-09-22 21:15:53 +02:00
|
|
|
Z(:) = 1d0/(1d0 - Z(:))
|
2019-03-19 10:13:33 +01:00
|
|
|
|
2023-07-04 10:44:20 +02:00
|
|
|
end subroutine
|