diff options
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 32601046..8d26dc7c 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -86,15 +86,15 @@ static double complex molecule_factor(struct molecule *mol, struct threevec q, double ph; ph= q.u*spec->x[j] + q.v*spec->y[j] + q.w*spec->z[j]; - + /* Conversion from revolutions to radians is required */ contrib += cos(2.0*M_PI*ph) + I*sin(2.0*M_PI*ph); - + } sfac = get_sfac(spec->species, s, en); F += sfac * contrib * exp(-2.0 * spec->B[j] * s); - + } return F; |