diff options
author | Thomas White <taw@physics.org> | 2011-03-04 16:49:58 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:17 +0100 |
commit | 39a22c1f2cbcb0b92e9d66dba6f8fea7ab5649ce (patch) | |
tree | c1925b43a1e822192d747d6cdfce3ceaf9b3ad2a /src/diffraction.c | |
parent | cfb3b8bcb4f0e3c6329d65ac181a8019176e39e6 (diff) |
Set rounding mode
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index a09d993b..8bf3b0c1 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -296,6 +296,7 @@ static double molecule_factor(const double *intensities, const double *phases, switch ( m ) { case GRADIENT_MOSAIC : + fesetround(1); /* Round to nearest */ h = (signed int)rint(hd); k = (signed int)rint(kd); l = (signed int)rint(ld); |