Definition at line 26 of file EvalSpacetimeCorr.c.
26 {
27 real cosV=0., cosV0=0., cosV1=0., cosV2=0., sinV=0., sinV1=0., sinV2=0.;
28 real COSA, SINA, COSV, SINV;
29 int j, m, n, nb, ni, nv;
33
36
37 for (n = 1; n <=
nAtom; n++){
38 j = 1;
39 COSA = cos(kMin*
rx[n]);
40 SINA = sin(kMin*
rx[n]);
42 if(m == 1){
43 cosV = cos(deltaK*
rx[n]);
44 sinV = sin(deltaK*
rx[n]);
45 cosV0 = cosV;
46 }else if(m == 2){
47 cosV1 = cosV;
48 sinV1 = sinV;
49 cosV = 2.*cosV0*cosV1-1;
50 sinV = 2.*cosV0*sinV1;
51 }else{
52 cosV2 = cosV1;
53 sinV2 = sinV1;
54 cosV1 = cosV;
55 sinV1 = sinV;
56 cosV = 2.*cosV0*cosV1-cosV2;
57 sinV = 2.*cosV0*sinV1-sinV2;
58 }
59 COSV = COSA*cosV - SINA*sinV;
60 SINV = SINA*cosV + COSA*sinV;
63 j += 2;
64 }
65 }
66
74 }
75
78
79 j = 1;
81 nv = m + ni;
83 j += 2;
84 }
85
86 }
87
88
109 fprintf (
fpdnsty,
"%e\t", tVal);
114 }
115
119 }
120 }
121 }
122}
References cfOrg, cfVal, countCorrAv, deltaT, fpdnsty, indexCorr, limitCorrAv, nAtom, nBuffCorr, NDIM, nFunCorr, nValCorr, region, rx, spacetimeCorr, spacetimeCorrAv, and stepCorr.