mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-10 21:18:29 +01:00
Add indent
This commit is contained in:
parent
db8f905b98
commit
a8eaf1cfb4
@ -1898,7 +1898,9 @@ end
|
|||||||
!!
|
!!
|
||||||
!! M_n(x) modified spherical bessel function
|
!! M_n(x) modified spherical bessel function
|
||||||
!!
|
!!
|
||||||
double precision function int_prod_bessel(l,gam,n,m,a,b,arg)
|
|
||||||
|
double precision function int_prod_bessel(l,gam,n,m,a,b,arg)
|
||||||
|
|
||||||
implicit none
|
implicit none
|
||||||
integer n,k,m,q,l,kcp
|
integer n,k,m,q,l,kcp
|
||||||
double precision gam,dblefact,fact,pi,a,b
|
double precision gam,dblefact,fact,pi,a,b
|
||||||
@ -1913,6 +1915,7 @@ end
|
|||||||
int_prod_bessel=0.d0
|
int_prod_bessel=0.d0
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
int_prod_bessel=crochet(l,gam)*freal
|
int_prod_bessel=crochet(l,gam)*freal
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
@ -1929,30 +1932,38 @@ end
|
|||||||
int=0.d0
|
int=0.d0
|
||||||
done=.false.
|
done=.false.
|
||||||
kcp=0
|
kcp=0
|
||||||
|
|
||||||
do while (.not.done)
|
do while (.not.done)
|
||||||
|
|
||||||
kcp=kcp+1
|
kcp=kcp+1
|
||||||
sum=0.d0
|
sum=0.d0
|
||||||
|
|
||||||
do k=0,q
|
do k=0,q
|
||||||
sum=sum+coef_nk(n,k)*coef_nk(m,q-k)*a**(n+2*k)*b**(m-2*k+2*q)
|
sum=sum+coef_nk(n,k)*coef_nk(m,q-k)*a**(n+2*k)*b**(m-2*k+2*q)
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
int=int+sum*crochet(2*q+n+m+l,gam)
|
int=int+sum*crochet(2*q+n+m+l,gam)
|
||||||
|
|
||||||
if(dabs(int-intold).lt.1d-15)then
|
if(dabs(int-intold).lt.1d-15)then
|
||||||
done=.true.
|
done=.true.
|
||||||
else
|
else
|
||||||
|
|
||||||
q=q+1
|
q=q+1
|
||||||
intold=int
|
intold=int
|
||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
int_prod_bessel=int*freal
|
int_prod_bessel=int*freal
|
||||||
|
|
||||||
if(kcp.gt.100)then
|
if(kcp.gt.100)then
|
||||||
print*,'**WARNING** bad convergence in int_prod_bessel'
|
print*,'**WARNING** bad convergence in int_prod_bessel'
|
||||||
! else
|
|
||||||
! print*,'kcp=',kcp
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if(a.eq.0.d0.and.b.ne.0.d0)then
|
if(a.eq.0.d0.and.b.ne.0.d0)then
|
||||||
|
|
||||||
if(n.ne.0)then
|
if(n.ne.0)then
|
||||||
int_prod_bessel=0.d0
|
int_prod_bessel=0.d0
|
||||||
return
|
return
|
||||||
@ -1963,16 +1974,21 @@ end
|
|||||||
int=0.d0
|
int=0.d0
|
||||||
done=.false.
|
done=.false.
|
||||||
kcp=0
|
kcp=0
|
||||||
|
|
||||||
do while (.not.done)
|
do while (.not.done)
|
||||||
|
|
||||||
kcp=kcp+1
|
kcp=kcp+1
|
||||||
int=int+coef_nk(m,q)*b**(m+2*q)*crochet(2*q+m+l,gam)
|
int=int+coef_nk(m,q)*b**(m+2*q)*crochet(2*q+m+l,gam)
|
||||||
|
|
||||||
if(dabs(int-intold).lt.1d-15)then
|
if(dabs(int-intold).lt.1d-15)then
|
||||||
done=.true.
|
done=.true.
|
||||||
else
|
else
|
||||||
q=q+1
|
q=q+1
|
||||||
intold=int
|
intold=int
|
||||||
endif
|
endif
|
||||||
|
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
int_prod_bessel=int*freal
|
int_prod_bessel=int*freal
|
||||||
if(kcp.gt.100)stop '**WARNING** bad convergence in int_prod_bessel'
|
if(kcp.gt.100)stop '**WARNING** bad convergence in int_prod_bessel'
|
||||||
return
|
return
|
||||||
@ -1989,6 +2005,7 @@ end
|
|||||||
int=0.d0
|
int=0.d0
|
||||||
done=.false.
|
done=.false.
|
||||||
kcp=0
|
kcp=0
|
||||||
|
|
||||||
do while (.not.done)
|
do while (.not.done)
|
||||||
kcp=kcp+1
|
kcp=kcp+1
|
||||||
int=int+coef_nk(n,q)*a**(n+2*q)*crochet(2*q+n+l,gam)
|
int=int+coef_nk(n,q)*a**(n+2*q)*crochet(2*q+n+l,gam)
|
||||||
@ -1999,13 +2016,15 @@ end
|
|||||||
intold=int
|
intold=int
|
||||||
endif
|
endif
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
int_prod_bessel=int*freal
|
int_prod_bessel=int*freal
|
||||||
if(kcp.gt.100)stop '**WARNING** bad convergence in int_prod_bessel'
|
if(kcp.gt.100)stop '**WARNING** bad convergence in int_prod_bessel'
|
||||||
return
|
return
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
stop 'pb in int_prod_bessel!!'
|
stop 'pb in int_prod_bessel!!'
|
||||||
end
|
end
|
||||||
|
|
||||||
double precision function int_prod_bessel_large(l,gam,n,m,a,b,arg)
|
double precision function int_prod_bessel_large(l,gam,n,m,a,b,arg)
|
||||||
implicit none
|
implicit none
|
||||||
|
@ -169,7 +169,7 @@ def run_hf(geo, basis, mult=1, pseudo=False, remove_after_sucess=True):
|
|||||||
|
|
||||||
ref_energy["sto-3g"]["methane"] = Energy(-39.7267433402, None)
|
ref_energy["sto-3g"]["methane"] = Energy(-39.7267433402, None)
|
||||||
ref_energy["vdz"]["SO2"] = Energy(None, -41.48912297776174)
|
ref_energy["vdz"]["SO2"] = Energy(None, -41.48912297776174)
|
||||||
ref_energy["vdz"]["HBO"] = Energy(None, -19.1198251160)
|
ref_energy["vdz"]["HBO"] = Energy(None, -19.11982540413317)
|
||||||
|
|
||||||
# ~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ #
|
# ~#~#~#~#~#~#~#~#~#~#~#~#~#~#~ #
|
||||||
# G l o b a l _ v a r i a b l e #
|
# G l o b a l _ v a r i a b l e #
|
||||||
|
Loading…
Reference in New Issue
Block a user