|
@@ -81,12 +81,17 @@ int main(int argc, char* argv[])
|
81
|
81
|
|
82
|
82
|
RecMat<complex<DP> > FT(0.0, Npts_x, Npts_t);
|
83
|
83
|
DP twopioverL = twoPI/L;
|
84
|
|
-
|
|
84
|
+ DP FFsq;
|
|
85
|
+ complex<DP> exp_ik, exp_miomega;
|
85
|
86
|
while (RAW_infile.peek() != EOF) {
|
86
|
87
|
RAW_infile >> omega >> iK >> FF >> dev >> label;
|
|
88
|
+ FFsq = FF * FF;
|
|
89
|
+ exp_ik = exp(II * (iK * twopioverL));
|
|
90
|
+ exp_miomega = exp(-II * omega);
|
87
|
91
|
for (int ix = 0; ix < Npts_x; ++ix)
|
88
|
92
|
for (int it = 0; it < Npts_t; ++it)
|
89
|
|
- FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
|
|
93
|
+ //FT[ix][it] += FF * FF * exp(II * (iK * twopioverL * xlattice[ix] - omega * tlattice[it]));
|
|
94
|
+ FT[ix][it] = FFsq * pow(exp_ik, xlattice[ix]) * pow(exp_miomega, tlattice[it]);
|
90
|
95
|
}
|
91
|
96
|
RAW_infile.close();
|
92
|
97
|
|