mirror of
https://github.com/pfloos/quack
synced 2024-11-19 12:32:36 +01:00
commit RG0W0
This commit is contained in:
parent
8a7e9ae90d
commit
59789d873c
@ -59,25 +59,29 @@ subroutine ppLR_C(ispin,nBas,nC,nO,nV,nR,nVV,lambda,e,ERI,Cpp)
|
|||||||
! Build C matrix for the triplet manifold, or alpha-alpha block, or in the spin-orbital basis
|
! Build C matrix for the triplet manifold, or alpha-alpha block, or in the spin-orbital basis
|
||||||
|
|
||||||
if(ispin == 2 .or. ispin == 4) then
|
if(ispin == 2 .or. ispin == 4) then
|
||||||
|
!$OMP PARALLEL &
|
||||||
|
!$OMP SHARED(Cpp,lambda,ERI,e,eF,nC,nO,nBas,nR) &
|
||||||
|
!$OMP PRIVATE(c,d,a,b,ab,cd) &
|
||||||
|
!$OMP DEFAULT(NONE)
|
||||||
|
!$OMP DO
|
||||||
|
do c=nO+1,nBas-nR
|
||||||
|
do d=c+1,nBas-nR
|
||||||
|
cd = (c-(nO+1))*(nBas-nR-(nO+1)) - (c-1-(nO+1))*(c-(nO+1))/2 + d - c
|
||||||
|
do a=nO+1,nBas-nR
|
||||||
|
do b=a+1,nBas-nR
|
||||||
|
ab = (a-(nO+1))*(nBas-nR-(nO+1)) - (a-1-(nO+1))*(a-(nO+1))/2 + b - a
|
||||||
|
|
||||||
ab = 0
|
Cpp(ab,cd) = + (e(a) + e(b) - eF)*Kronecker_delta(a,c)*Kronecker_delta(b,d) &
|
||||||
do a=nO+1,nBas-nR
|
+ lambda*(ERI(a,b,c,d) - ERI(a,b,d,c))
|
||||||
do b=a+1,nBas-nR
|
|
||||||
ab = ab + 1
|
|
||||||
cd = 0
|
|
||||||
do c=nO+1,nBas-nR
|
|
||||||
do d=c+1,nBas-nR
|
|
||||||
cd = cd + 1
|
|
||||||
|
|
||||||
Cpp(ab,cd) = + (e(a) + e(b) - eF)*Kronecker_delta(a,c)*Kronecker_delta(b,d) &
|
|
||||||
+ lambda*(ERI(a,b,c,d) - ERI(a,b,d,c))
|
|
||||||
|
|
||||||
end do
|
end do
|
||||||
end do
|
end do
|
||||||
end do
|
end do
|
||||||
end do
|
end do
|
||||||
|
!$OMP END DO
|
||||||
|
!$OMP END PARALLEL
|
||||||
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
! Build the alpha-beta block of the C matrix
|
! Build the alpha-beta block of the C matrix
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ FIX_ORDER_OF_LIBS=-Wl,--start-group
|
|||||||
|
|
||||||
|
|
||||||
if sys.platform in ["linux", "linux2"]:
|
if sys.platform in ["linux", "linux2"]:
|
||||||
compiler = compile_gfortran_linux
|
# compiler = compile_gfortran_linux
|
||||||
# compiler = compile_ifort_linux
|
compiler = compile_ifort_linux
|
||||||
elif sys.platform == "darwin":
|
elif sys.platform == "darwin":
|
||||||
compiler = compile_gfortran_mac
|
compiler = compile_gfortran_mac
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user