10
1
mirror of https://github.com/pfloos/quack synced 2025-01-03 18:16:03 +01:00

ok with pCCD for now

This commit is contained in:
Pierre-Francois Loos 2024-09-03 11:39:57 +02:00
parent 4cfe6ddb39
commit bbbf50e146

View File

@ -182,8 +182,6 @@ subroutine pCCD(dotest,maxIt,thresh,max_diis,nBas,nOrb,nC,nO,nV,nR, &
CvgAmp = 1d0
nItAmp = 0
ECC = ERHF
EcCC = 0d0
n_diis = 0
t2(:,:) = 0d0
@ -216,7 +214,7 @@ subroutine pCCD(dotest,maxIt,thresh,max_diis,nBas,nOrb,nC,nO,nV,nR, &
t2(:,:) = t2(:,:) - 0.5d0*r2(:,:)/delta_OV(:,:)
! Compute correlation energy
! Compute correlation energy from t amplitudes
EcCC = 0d0
do i=1,O
@ -299,6 +297,15 @@ subroutine pCCD(dotest,maxIt,thresh,max_diis,nBas,nOrb,nC,nO,nV,nR, &
! Update amplitudes
z2(:,:) = z2(:,:) - 0.5d0*r2(:,:)/delta_OV(:,:)
! Compute correlation energy
EcCC = 0d0
do i=1,O
do a=1,V
EcCC = EcCC + OOVV(i,a)*z2(i,a)
end do
end do
! DIIS extrapolation