|
111 | 111 | complex*16 :: accu, P_center(3)
|
112 | 112 | complex*16 :: d(0:n_pt_in)
|
113 | 113 |
|
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 |
116 | 117 |
|
117 | 118 | if ( (A_center(1)/=B_center(1)) .or. (A_center(2)/=B_center(2)) .or. (A_center(3)/=B_center(3)) .or. &
|
118 | 119 | (A_center(1)/=C_center(1)) .or. (A_center(2)/=C_center(2)) .or. (A_center(3)/=C_center(3)) ) then
|
|
162 | 163 | return
|
163 | 164 | endif
|
164 | 165 |
|
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) |
167 | 168 |
|
168 | 169 | if(n_pt_out < 0) then
|
169 | 170 | NAI_pol_mult_cosgtos = (0.d0, 0.d0)
|
170 | 171 | return
|
171 | 172 | endif
|
172 | 173 |
|
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) |
179 | 179 | NAI_pol_mult_cosgtos = accu * coeff
|
180 | 180 |
|
| 181 | + return |
181 | 182 | end
|
182 | 183 |
|
183 | 184 | ! ---
|
|
0 commit comments