3
\brief Enter brief description of file here
10
#include<libint/libint.h>
11
#include<libderiv/libderiv.h>
18
#include"taylor_fm_eval.h"
25
/*!--------------------------------------------------------------------------------
26
This function computes constants used in OSRR for a given quartet of primitives
27
--------------------------------------------------------------------------------*/
28
void deriv1_quartet_data(prim_data *Data, double_array_t *fjt_table, double AB2, double CD2,
29
struct shell_pair *sp1, struct shell_pair *sp2,
30
int am, int pi, int pj, int pk, int pl, double scale)
38
struct coordinates PQ, W;
40
double F[2*CINTS_MAX_AM+1];
43
double small_T = UserOptions.cutoff; /*--- Use only one term in Taylor expansion of Fj(T) if T < small_T ---*/
48
double zeta, eta, rho;
50
zeta = sp1->gamma[pi][pj];
51
eta = sp2->gamma[pk][pl];
52
oozn = 1.0/(zeta+eta);
53
Data->twozeta_a = 2.0*sp1->a1[pi];
54
Data->twozeta_b = 2.0*sp1->a2[pj];
55
Data->twozeta_c = 2.0*sp2->a1[pk];
56
Data->twozeta_d = 2.0*sp2->a2[pl];
59
coef1 = 2.0*sqrt(rho*M_1_PI)*scale*sp1->Sovlp[pi][pj]*sp2->Sovlp[pk][pl];
60
PQ.x = sp1->P[pi][pj][0] - sp2->P[pk][pl][0];
61
PQ.y = sp1->P[pi][pj][1] - sp2->P[pk][pl][1];
62
PQ.z = sp1->P[pi][pj][2] - sp2->P[pk][pl][2];
68
Data->oo2zn = 0.5*oozn;
69
Data->pon = zeta*oozn;
70
Data->oo2z = 0.5/zeta;
72
W.x = (sp1->P[pi][pj][0]*zeta+sp2->P[pk][pl][0]*eta)*oozn;
73
W.y = (sp1->P[pi][pj][1]*zeta+sp2->P[pk][pl][1]*eta)*oozn;
74
W.z = (sp1->P[pi][pj][2]*zeta+sp2->P[pk][pl][2]*eta)*oozn;
77
for(i=0; i<=am+DERIV_LVL; i++)
78
Data->F[i] = oo2np1[i]*coef1;
82
taylor_compute_fm(F,T,am+DERIV_LVL);
83
for(i=0;i<=am+DERIV_LVL;i++)
84
Data->F[i] = F[i]*coef1;
86
int_fjt(fjt_table,am+DERIV_LVL,T);
87
for(i=0;i<=am+DERIV_LVL;i++)
88
Data->F[i] = fjt_table->d[i]*coef1;
93
Data->U[0][0] = sp1->PA[pi][pj][0];
94
Data->U[0][1] = sp1->PA[pi][pj][1];
95
Data->U[0][2] = sp1->PA[pi][pj][2];
97
Data->U[1][0] = sp1->PB[pi][pj][0];
98
Data->U[1][1] = sp1->PB[pi][pj][1];
99
Data->U[1][2] = sp1->PB[pi][pj][2];
101
Data->U[2][0] = sp2->PA[pk][pl][0];
102
Data->U[2][1] = sp2->PA[pk][pl][1];
103
Data->U[2][2] = sp2->PA[pk][pl][2];
105
Data->U[3][0] = sp2->PB[pk][pl][0];
106
Data->U[3][1] = sp2->PB[pk][pl][1];
107
Data->U[3][2] = sp2->PB[pk][pl][2];
109
Data->U[4][0] = W.x - sp1->P[pi][pj][0];
110
Data->U[4][1] = W.y - sp1->P[pi][pj][1];
111
Data->U[4][2] = W.z - sp1->P[pi][pj][2];
113
Data->U[5][0] = W.x - sp2->P[pk][pl][0];
114
Data->U[5][1] = W.y - sp2->P[pk][pl][1];
115
Data->U[5][2] = W.z - sp2->P[pk][pl][2];