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

reversing loops in HF

This commit is contained in:
Pierre-Francois Loos 2022-12-10 09:03:28 +01:00
parent b450829846
commit e41097e8c2
3 changed files with 15 additions and 15 deletions

View File

@ -263,7 +263,7 @@ subroutine CCGW(maxSCF,thresh,nBas,nC,nO,nV,nR,ERI,ENuc,ERHF,e)
t_2h1p(:,:,:,:) = t_2h1p(:,:,:,:) - r_2h1p(:,:,:,:)/delta_2h1p(:,:,:,:)
t_2p1h(:,:,:,:) = t_2p1h(:,:,:,:) - r_2p1h(:,:,:,:)/delta_2p1h(:,:,:,:)
! Compute correlation energy
! Compute self-energy
SigGW(:,:) = 0d0

View File

@ -19,9 +19,9 @@ subroutine density_matrix(nBas,ON,c,P)
P(:,:) = 0d0
do mu=1,nBas
do nu=1,nBas
do i=1,nBas
do nu=1,nBas
do mu=1,nBas
P(mu,nu) = P(mu,nu) + 2d0*ON(i)*c(mu,i)*c(nu,i)
enddo
enddo

View File

@ -42,8 +42,8 @@ subroutine dipole_moment(nBas,P,nNuc,ZNuc,rNuc,dipole_int,dipole)
! Electronic part
do mu=1,nBas
do nu=1,nBas
do mu=1,nBas
dipole(ixyz) = dipole(ixyz) - P(mu,nu)*dipole_int(mu,nu,ixyz)
enddo
enddo