Skip to content

Commit

Permalink
Merge branch 'master' into work_env
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdAmmar committed Nov 5, 2024
2 parents 344c2bd + 52a1346 commit c2031c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/GW/GGW_self_energy.f90
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ subroutine GGW_self_energy(eta,nOrb,nC,nO,nV,nR,nS,e,Om,rho,EcGM,Sig,Z)

!$OMP PARALLEL &
!$OMP SHARED(Sig,Z,rho,eta,nS,nC,nO,nOrb,nR,e,Om) &
!$OMP PRIVATE(m,i,q,p,eps,num) &
!$OMP PRIVATE(m,i,p,eps,num) &
!$OMP DEFAULT(NONE)
!$OMP DO
do p=nC+1,nOrb-nR
do m=1,nS
do i=nC+1,nO

eps = e(p) - e(i) + Om(m)
num = rho(p,i,m)*rho(q,i,m)
num = rho(p,i,m)*rho(p,i,m)
Z(p) = Z(p) - num*(eps**2 - eta**2)/(eps**2 + eta**2)**2

end do
Expand All @@ -113,15 +113,15 @@ subroutine GGW_self_energy(eta,nOrb,nC,nO,nV,nR,nS,e,Om,rho,EcGM,Sig,Z)

!$OMP PARALLEL &
!$OMP SHARED(Sig,Z,rho,eta,nS,nC,nO,nOrb,nR,e,Om) &
!$OMP PRIVATE(m,a,q,p,eps,num) &
!$OMP PRIVATE(m,a,p,eps,num) &
!$OMP DEFAULT(NONE)
!$OMP DO
do p=nC+1,nOrb-nR
do m=1,nS
do a=nO+1,nOrb-nR

eps = e(p) - e(a) - Om(m)
num = rho(p,a,m)*rho(q,a,m)
num = rho(p,a,m)*rho(p,a,m)
Z(p) = Z(p) - num*(eps**2 - eta**2)/(eps**2 + eta**2)**2

end do
Expand Down

0 comments on commit c2031c9

Please sign in to comment.