10
1
mirror of https://github.com/pfloos/quack synced 2024-12-23 04:43:42 +01:00

openMP for GW bis

This commit is contained in:
Antoine Marie 2023-03-14 14:12:19 +01:00
parent 3a80069009
commit 7598446ed8

View File

@ -19,19 +19,25 @@ subroutine excitation_density(nBas,nC,nO,nR,nS,ERI,XpY,rho)
double precision,intent(out) :: rho(nBas,nBas,nS) double precision,intent(out) :: rho(nBas,nBas,nS)
rho(:,:,:) = 0d0 rho(:,:,:) = 0d0
!$OMP PARALLEL &
jb = 0 !$OMP SHARED(nC,nBas,nR,nO,nS,rho,ERI,XpY) &
do j=nC+1,nO !$OMP PRIVATE(q,p,jb,ia) &
do b=nO+1,nBas-nR !$OMP DEFAULT(NONE)
jb = jb + 1 !$OMP DO
do ia=1,nS do q=nC+1,nBas-nR
do q=nC+1,nBas-nR do p=nC+1,nBas-nR
do p=nC+1,nBas-nR jb = 0
rho(p,q,ia) = rho(p,q,ia) + ERI(p,j,q,b)*XpY(ia,jb) do j=nC+1,nO
enddo do b=nO+1,nBas-nR
jb = jb + 1
do ia=1,nS
rho(p,q,ia) = rho(p,q,ia) + ERI(p,j,q,b)*XpY(ia,jb)
enddo
enddo
enddo enddo
enddo enddo
enddo
enddo enddo
!$OMP END DO
!$OMP END PARALLEL
end subroutine excitation_density end subroutine excitation_density