mirror of
https://github.com/pfloos/quack
synced 2024-12-22 12:23:50 +01:00
opt memory access in Aph & Bph
This commit is contained in:
parent
6cfe4a5dec
commit
20900979c4
@ -60,7 +60,7 @@ subroutine phLR_A(ispin,dRPA,nBas,nC,nO,nV,nR,nS,lambda,e,ERI,Aph)
|
||||
do b = nO+1, nBas-nR
|
||||
jb = b + jb0
|
||||
|
||||
Aph(ia,jb) = ct1 * ERI(i,b,a,j) + ct2 * ERI(i,b,j,a)
|
||||
Aph(ia,jb) = ct1 * ERI(b,i,j,a) + ct2 * ERI(b,j,a,i)
|
||||
if(i_eq_j) then
|
||||
if(a == b) Aph(ia,jb) = Aph(ia,jb) + e(a) - e(i)
|
||||
endif
|
||||
@ -109,7 +109,7 @@ subroutine phLR_A(ispin,dRPA,nBas,nC,nO,nV,nR,nS,lambda,e,ERI,Aph)
|
||||
do b = nO+1, nBas-nR
|
||||
jb = b + jb0
|
||||
|
||||
Aph(ia,jb) = ct2 * ERI(i,b,j,a)
|
||||
Aph(ia,jb) = ct2 * ERI(b,j,a,i)
|
||||
if(i_eq_j) then
|
||||
if(a == b) Aph(ia,jb) = Aph(ia,jb) + e(a) - e(i)
|
||||
endif
|
||||
|
@ -50,7 +50,7 @@ subroutine phLR_B(ispin,dRPA,nBas,nC,nO,nV,nR,nS,lambda,ERI,Bph)
|
||||
do b = nO+1, nBas-nR
|
||||
jb = b + jb0
|
||||
|
||||
Bph(ia,jb) = ct1 * ERI(i,j,a,b) + ct2 * ERI(i,j,b,a)
|
||||
Bph(ia,jb) = ct1 * ERI(b,i,j,a) + ct2 * ERI(b,j,i,a)
|
||||
enddo
|
||||
enddo
|
||||
enddo
|
||||
@ -94,7 +94,7 @@ subroutine phLR_B(ispin,dRPA,nBas,nC,nO,nV,nR,nS,lambda,ERI,Bph)
|
||||
do b = nO+1, nBas-nR
|
||||
jb = b + jb0
|
||||
|
||||
Bph(ia,jb) = ct2 * ERI(i,j,b,a)
|
||||
Bph(ia,jb) = ct2 * ERI(b,j,i,a)
|
||||
enddo
|
||||
enddo
|
||||
enddo
|
||||
|
Loading…
Reference in New Issue
Block a user