49#include "../base/base_uses.f90"
52 CHARACTER(len=*),
PARAMETER,
PRIVATE :: moduleN =
'ai_coulomb'
84 SUBROUTINE coulomb2(la_max, npgfa, zeta, rpgfa, la_min, lc_max, npgfc, zetc, rpgfc, lc_min, &
85 rac, rac2, vac, v, f, screening)
86 INTEGER,
INTENT(IN) :: la_max, npgfa
87 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN) :: zeta, rpgfa
88 INTEGER,
INTENT(IN) :: la_min, lc_max, npgfc
89 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN) :: zetc, rpgfc
90 INTEGER,
INTENT(IN) :: lc_min
91 REAL(kind=
dp),
DIMENSION(3),
INTENT(IN) :: rac
92 REAL(kind=
dp),
INTENT(IN) :: rac2
93 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(INOUT) :: vac
94 REAL(kind=
dp),
DIMENSION(:, :, :) :: v
95 REAL(kind=
dp),
DIMENSION(0:) :: f
96 LOGICAL,
INTENT(IN),
OPTIONAL :: screening
98 INTEGER :: i, ipgf, j, jpgf, n, na, nap, nc, ncp, &
100 LOGICAL :: do_screening
101 REAL(kind=
dp) :: dac, f0, rho, t, zetp, zetq, zetw
103 do_screening = .true.
104 IF (
PRESENT(screening)) do_screening = screening
108 nmax = la_max + lc_max + 1
121 IF (do_screening .AND. rpgfa(ipgf) + rpgfc(jpgf) < dac)
THEN
131 zetp = 1.0_dp/zeta(ipgf)
132 zetq = 1.0_dp/zetc(jpgf)
133 zetw = 1.0_dp/(zeta(ipgf) + zetc(jpgf))
135 rho = zeta(ipgf)*zetc(jpgf)*zetw
137 f0 = 2.0_dp*sqrt(
pi**5*zetw)*zetp*zetq
141 CALL fgamma(nmax - 1, t, f)
144 v(1, 1, n) = f0*f(n - 1)
148 zetp, zetq, zetw, rho, rac, vac, v, na, nc, nap, ncp)
153 nap = nap +
ncoset(la_max)
192 SUBROUTINE coulomb3(la_max, npgfa, zeta, rpgfa, la_min, lb_max, npgfb, zetb, rpgfb, lb_min, &
193 lc_max, zetc, rpgfc, lc_min, gccc, rab, rab2, rac, rac2, rbc2, vabc, int_abc, &
194 v, f, maxder, vabc_plus)
195 INTEGER,
INTENT(IN) :: la_max, npgfa
196 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN) :: zeta, rpgfa
197 INTEGER,
INTENT(IN) :: la_min, lb_max, npgfb
198 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN) :: zetb, rpgfb
199 INTEGER,
INTENT(IN) :: lb_min, lc_max
200 REAL(kind=
dp),
INTENT(IN) :: zetc, rpgfc
201 INTEGER,
INTENT(IN) :: lc_min
202 REAL(kind=
dp),
DIMENSION(:),
INTENT(IN) :: gccc
203 REAL(kind=
dp),
DIMENSION(3),
INTENT(IN) :: rab
204 REAL(kind=
dp),
INTENT(IN) :: rab2
205 REAL(kind=
dp),
DIMENSION(3),
INTENT(IN) :: rac
206 REAL(kind=
dp),
INTENT(IN) :: rac2, rbc2
207 REAL(kind=
dp),
DIMENSION(:, :),
INTENT(INOUT) :: vabc
208 REAL(kind=
dp),
DIMENSION(:, :, :),
INTENT(OUT) :: int_abc
209 REAL(kind=
dp),
DIMENSION(:, :, :, :) :: v
210 REAL(kind=
dp),
DIMENSION(0:) :: f
211 INTEGER,
INTENT(IN),
OPTIONAL :: maxder
212 REAL(kind=
dp),
DIMENSION(:, :),
OPTIONAL :: vabc_plus
214 INTEGER :: i, ipgf, j, jpgf, k, kk, maxder_local, &
216 REAL(
dp) :: dab, dac, dbc, f0, f1, f4, rap(3), &
217 rbp(3), rcp(3), t, zetp, zetq, zetw
222 IF (
PRESENT(maxder))
THEN
223 maxder_local = maxder
226 nmax = la_max + lb_max + lc_max + 1
245 IF (rpgfa(ipgf) + rpgfc < dac)
THEN
246 na = na +
ncoset(la_max - maxder_local)
247 nap = nap +
ncoset(la_max)
257 (rpgfb(jpgf) + rpgfc < dbc) .OR. &
258 (rpgfa(ipgf) + rpgfb(jpgf) < dab))
THEN
265 zetp = 1.0_dp/(zeta(ipgf) + zetb(jpgf))
267 zetw = 1.0_dp/(zeta(ipgf) + zetb(jpgf) + zetc)
269 f0 = 2.0_dp*sqrt(
pi**5*zetw)*zetp*zetq
273 f0 = f0*exp(-zeta(ipgf)*f1*rab2)
276 rcp(:) = rap(:) - rac(:)
280 t = -f4*(rcp(1)*rcp(1) + rcp(2)*rcp(2) + rcp(3)*rcp(3))/zetp
282 CALL fgamma(nmax - 1, t, f)
287 v(1, 1, 1, n) = f0*f(n - 1)
291 CALL os_rr_coulomb3(rap, la_max, rbp, lb_max, rcp, lc_max, zetp, zetq, zetw, v)
297 kk = k -
ncoset(lc_min - 1)
299 DO i =
ncoset(la_min - 1) + 1,
ncoset(la_max - maxder_local)
300 vabc(na + i, nb + j) = vabc(na + i, nb + j) + gccc(kk)*v(i, j, k, 1)
301 int_abc(na + i, nb + j, kk) = v(i, j, k, 1)
306 IF (
PRESENT(maxder))
THEN
308 kk = k -
ncoset(lc_min - 1)
311 vabc_plus(nap + i, nb + j) = vabc_plus(nap + i, nb + j) + gccc(kk)*v(i, j, k, 1)
321 na = na +
ncoset(la_max - maxder_local)
322 nap = nap +
ncoset(la_max)
Calculation of Coulomb integrals over Cartesian Gaussian-type functions (electron repulsion integrals...
subroutine, public coulomb2(la_max, npgfa, zeta, rpgfa, la_min, lc_max, npgfc, zetc, rpgfc, lc_min, rac, rac2, vac, v, f, screening)
Calculation of the primitive two-center Coulomb integrals over Cartesian Gaussian-type functions.
subroutine, public coulomb3(la_max, npgfa, zeta, rpgfa, la_min, lb_max, npgfb, zetb, rpgfb, lb_min, lc_max, zetc, rpgfc, lc_min, gccc, rab, rab2, rac, rac2, rbc2, vabc, int_abc, v, f, maxder, vabc_plus)
Calculation of the primitive three-center Coulomb integrals over Cartesian Gaussian-type functions (e...
Calculation of integrals over Cartesian Gaussian-type functions for different r12 operators: 1/r12,...
subroutine, public operator2_recurrence(la_max, la_min, lc_max, lc_min, zeta_a, zeta_c, zetp, zetq, zetw, rho, rac, vac, v, na, nc, nap, ncp, maxder, vac_plus)
Apply the common two-center OS recurrence to one primitive pair. The caller initializes v(1,...
subroutine, public os_rr_coulomb3(rap, la_max, rbp, lb_max, rcp, lc_max, zetp, zetq, zetw, rr)
Angular three-center Coulomb recurrence from caller-supplied s/s/s seeds.
Calculation of the incomplete Gamma function F_n(t) for multi-center integrals over Cartesian Gaussia...
subroutine, public fgamma_0(nmax, t, f)
Calculation of the incomplete Gamma function F(t) for multicenter integrals over Gaussian functions....
Defines the basic variable types.
integer, parameter, public dp
Definition of mathematical constants and functions.
real(kind=dp), parameter, public pi
Provides Cartesian and spherical orbital pointers and indices.
integer, dimension(:), allocatable, public ncoset