4
1
mirror of https://github.com/pfloos/quack synced 2024-06-26 23:22:20 +02:00
quack/src/IntPak/HRROv.f90

29 lines
753 B
Fortran
Raw Normal View History

2019-02-07 22:49:12 +01:00
recursive function HRROv(AngMomA,AngMomB,ExpPi,CenterAB,CenterPA) &
result(Gab)
! Horizontal recurrence relations for one-electron overlap integrals
implicit none
! Input variables
integer,intent(in) :: AngMomA,AngMomB
double precision,intent(in) :: ExpPi
double precision,intent(in) :: CenterAB,CenterPA
! Local variables
double precision :: VRROv
double precision :: Gab
if(AngMomB < 0) then
Gab = 0d0
else
if(AngMomB == 0) then
Gab = VRROv(AngMomA,ExpPi,CenterPA)
else
Gab = HRROv(AngMomA+1,AngMomB-1,ExpPi,CenterAB,CenterPA) &
+ CenterAB*HRROv(AngMomA,AngMomB-1,ExpPi,CenterAB,CenterPA)
2019-03-20 13:38:42 +01:00
end if
end if
2019-02-07 22:49:12 +01:00
end function HRROv