2021-10-16 18:51:53 +02:00
|
|
|
subroutine renormalization_factor_Tmatrix(eta,nBas,nC,nO,nV,nR,nOO,nVV,e,Omega1,rho1,Omega2,rho2,Z)
|
2019-10-06 22:35:36 +02:00
|
|
|
|
|
|
|
! Compute renormalization factor of the T-matrix self-energy
|
|
|
|
|
|
|
|
implicit none
|
|
|
|
include 'parameters.h'
|
|
|
|
|
|
|
|
! Input variables
|
|
|
|
|
|
|
|
double precision,intent(in) :: eta
|
2019-10-20 08:18:58 +02:00
|
|
|
integer,intent(in) :: nBas,nC,nO,nV,nR
|
2020-04-13 11:33:48 +02:00
|
|
|
integer,intent(in) :: nOO
|
|
|
|
integer,intent(in) :: nVV
|
2019-10-06 22:35:36 +02:00
|
|
|
double precision,intent(in) :: e(nBas)
|
2020-04-13 11:33:48 +02:00
|
|
|
double precision,intent(in) :: Omega1(nVV)
|
2021-10-16 15:34:34 +02:00
|
|
|
double precision,intent(in) :: rho1(nBas,nBas,nVV)
|
2020-04-13 11:33:48 +02:00
|
|
|
double precision,intent(in) :: Omega2(nOO)
|
2021-10-16 15:34:34 +02:00
|
|
|
double precision,intent(in) :: rho2(nBas,nBas,nOO)
|
2019-10-06 22:35:36 +02:00
|
|
|
|
|
|
|
! Local variables
|
|
|
|
|
|
|
|
integer :: i,j,k,l,a,b,c,d,p,cd,kl
|
|
|
|
double precision :: eps
|
|
|
|
|
|
|
|
! Output variables
|
|
|
|
|
|
|
|
double precision,intent(out) :: Z(nBas)
|
|
|
|
|
2019-10-20 08:18:58 +02:00
|
|
|
! Occupied part of the T-matrix self-energy
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
|
|
|
do i=nC+1,nO
|
2020-04-13 11:33:48 +02:00
|
|
|
do cd=1,nVV
|
|
|
|
eps = e(p) + e(i) - Omega1(cd)
|
2021-10-16 18:51:53 +02:00
|
|
|
Z(p) = Z(p) - rho1(p,i,cd)**2*(eps/(eps**2 + eta**2))**2
|
2019-10-20 08:18:58 +02:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
|
|
|
|
! Virtual part of the T-matrix self-energy
|
|
|
|
|
|
|
|
do p=nC+1,nBas-nR
|
2020-03-14 23:00:44 +01:00
|
|
|
do a=1,nV-nR
|
2020-04-13 11:33:48 +02:00
|
|
|
do kl=1,nOO
|
|
|
|
eps = e(p) + e(nO+a) - Omega2(kl)
|
2021-10-16 18:51:53 +02:00
|
|
|
Z(p) = Z(p) - rho2(p,nO+a,kl)**2*(eps/(eps**2 + eta**2))**2
|
2019-10-20 08:18:58 +02:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
|
2019-10-06 22:35:36 +02:00
|
|
|
end subroutine renormalization_factor_Tmatrix
|