Fix test for k != 0
Former-commit-id: e7a3099c4a28631129c07f82a71abc3edacfb7e5
This commit is contained in:
parent
d91fdc2e80
commit
cbbdec5963
|
@ -223,8 +223,10 @@ ewaldtest2d_results *ewaldtest2d(const ewaldtest2d_params p) {
|
||||||
results->sigmas_total[y] = results->sigmas_short[y] + results->sigmas_long[y];
|
results->sigmas_total[y] = results->sigmas_short[y] + results->sigmas_long[y];
|
||||||
results->err_sigmas_total[y] = results->err_sigmas_short[y] + results->err_sigmas_long[y];
|
results->err_sigmas_total[y] = results->err_sigmas_short[y] + results->err_sigmas_long[y];
|
||||||
}
|
}
|
||||||
results->sigmas_total[0] += results->sigma0;
|
if(!include_origin) { // "Renormalised" contribution of origin point
|
||||||
results->err_sigmas_total[0] += results->err_sigma0;
|
results->sigmas_total[0] += results->sigma0;
|
||||||
|
results->err_sigmas_total[0] += results->err_sigma0;
|
||||||
|
}
|
||||||
|
|
||||||
// Now calculate the reference values [LT(4.16)]
|
// Now calculate the reference values [LT(4.16)]
|
||||||
results->regsigmas_416 = calloc(nelem_sc, sizeof(complex double));
|
results->regsigmas_416 = calloc(nelem_sc, sizeof(complex double));
|
||||||
|
|
Loading…
Reference in New Issue