Skip to content

Commit 68ed788

Browse files
committed
few optim in cplx Boys fct
1 parent 7f57051 commit 68ed788

File tree

4 files changed

+335
-489
lines changed

4 files changed

+335
-489
lines changed

src/ao_one_e_ints/one_e_Coul_integrals_cosgtos.irp.f

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@
111111
complex*16 :: accu, P_center(3)
112112
complex*16 :: d(0:n_pt_in)
113113

114-
complex*16 :: V_n_e_cosgtos
115-
complex*16 :: crint_2
114+
complex*16, external :: V_n_e_cosgtos
115+
complex*16, external :: crint_2
116+
complex*16, external :: crint_sum_2
116117

117118
if ( (A_center(1)/=B_center(1)) .or. (A_center(2)/=B_center(2)) .or. (A_center(3)/=B_center(3)) .or. &
118119
(A_center(1)/=C_center(1)) .or. (A_center(2)/=C_center(2)) .or. (A_center(3)/=C_center(3)) ) then
@@ -162,22 +163,22 @@
162163
return
163164
endif
164165

165-
call give_cpolynomial_mult_center_one_e( A_center, B_center, alpha, beta &
166-
, power_A, power_B, C_center, n_pt_in, d, n_pt_out)
166+
call give_cpolynomial_mult_center_one_e(A_center, B_center, alpha, beta, &
167+
power_A, power_B, C_center, n_pt_in, d, n_pt_out)
167168

168169
if(n_pt_out < 0) then
169170
NAI_pol_mult_cosgtos = (0.d0, 0.d0)
170171
return
171172
endif
172173

173-
accu = (0.d0, 0.d0)
174-
do i = 0, n_pt_out, 2
175-
accu += crint_2(shiftr(i, 1), const) * d(i)
176-
177-
! print *, shiftr(i, 1), real(const), real(d(i)), real(crint_2(shiftr(i, 1), const))
178-
enddo
174+
!accu = (0.d0, 0.d0)
175+
!do i = 0, n_pt_out, 2
176+
! accu += crint_2(shiftr(i, 1), const) * d(i)
177+
!enddo
178+
accu = crint_sum_2(n_pt_out, const, d)
179179
NAI_pol_mult_cosgtos = accu * coeff
180180

181+
return
181182
end
182183

183184
! ---

0 commit comments

Comments
 (0)