2023-07-27 16:43:15 +02:00
|
|
|
double precision function GTpp_SigC(p,w,eta,nBas,nC,nO,nV,nR,nOO,nVV,e,Om1,rho1,Om2,rho2)
|
2023-06-30 19:17:35 +02:00
|
|
|
|
|
|
|
! Compute diagonal of the correlation part of the self-energy
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
|
|
|
integer,intent(in) :: p
|
|
|
|
double precision,intent(in) :: w
|
|
|
|
double precision,intent(in) :: eta
|
|
|
|
integer,intent(in) :: nBas
|
|
|
|
integer,intent(in) :: nC
|
|
|
|
integer,intent(in) :: nO
|
|
|
|
integer,intent(in) :: nV
|
|
|
|
integer,intent(in) :: nR
|
|
|
|
integer,intent(in) :: nOO,nVV
|
|
|
|
double precision,intent(in) :: e(nBas)
|
2023-07-27 16:43:15 +02:00
|
|
|
double precision,intent(in) :: Om1(nVV)
|
2023-06-30 19:17:35 +02:00
|
|
|
double precision,intent(in) :: rho1(nBas,nBas,nVV)
|
2023-07-27 16:43:15 +02:00
|
|
|
double precision,intent(in) :: Om2(nOO)
|
2023-06-30 19:17:35 +02:00
|
|
|
double precision,intent(in) :: rho2(nBas,nBas,nOO)
|
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
integer :: i,a,cd,kl
|
|
|
|
double precision :: eps
|
|
|
|
|
|
|
|
! Initialize
|
|
|
|
|
2023-07-27 16:43:15 +02:00
|
|
|
GTpp_SigC = 0d0
|
2023-06-30 19:17:35 +02:00
|
|
|
|
|
|
|
!----------------------------------------------
|
|
|
|
! Occupied part of the T-matrix self-energy
|
|
|
|
!----------------------------------------------
|
2023-07-12 22:37:04 +02:00
|
|
|
|
2023-06-30 19:17:35 +02:00
|
|
|
do i=nC+1,nO
|
2023-07-12 22:37:04 +02:00
|
|
|
do cd=1,nVV
|
2023-07-27 16:43:15 +02:00
|
|
|
eps = w + e(i) - Om1(cd)
|
|
|
|
GTpp_SigC = GTpp_SigC + rho1(p,i,cd)**2*eps/(eps**2 + eta**2)
|
2023-07-12 22:37:04 +02:00
|
|
|
enddo
|
2023-06-30 19:17:35 +02:00
|
|
|
enddo
|
2023-07-12 22:37:04 +02:00
|
|
|
|
2023-06-30 19:17:35 +02:00
|
|
|
!----------------------------------------------
|
|
|
|
! Virtual part of the T-matrix self-energy
|
|
|
|
!----------------------------------------------
|
2023-07-12 22:37:04 +02:00
|
|
|
|
2023-06-30 19:17:35 +02:00
|
|
|
do a=nO+1,nBas-nR
|
2023-07-12 22:37:04 +02:00
|
|
|
do kl=1,nOO
|
2023-07-27 16:43:15 +02:00
|
|
|
eps = w + e(a) - Om2(kl)
|
|
|
|
GTpp_SigC = GTpp_SigC + rho2(p,a,kl)**2*eps/(eps**2 + eta**2)
|
2023-07-12 22:37:04 +02:00
|
|
|
enddo
|
2023-06-30 19:17:35 +02:00
|
|
|
enddo
|
|
|
|
|
2023-07-12 22:37:04 +02:00
|
|
|
end function
|