diff options
author | Thomas White <taw@physics.org> | 2012-03-14 11:48:18 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-03-14 14:40:37 +0100 |
commit | d649bf106e4a14660f34ce7884be026695219861 (patch) | |
tree | eae9bc3233ebed8836eaa95e3b6ad30f8d1219b8 | |
parent | 56f7647d35da4e32af1d57ebeda332e69be33e3d (diff) |
Formatting
-rw-r--r-- | src/diffraction.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 9c6509e1..870569b7 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -334,7 +334,8 @@ static double molecule_factor(const double *intensities, const double *phases, if ( flags == NULL ) return 1.0e5; switch ( m ) { - case GRADIENT_MOSAIC : + + case GRADIENT_MOSAIC : fesetround(1); /* Round to nearest */ h = (signed int)rint(hd); k = (signed int)rint(kd); @@ -344,14 +345,17 @@ static double molecule_factor(const double *intensities, const double *phases, else if ( abs(l) > INDMAX ) r = 0.0; else r = sym_lookup_intensity(intensities, flags, sym, h, k, l); break; - case GRADIENT_INTERPOLATE : + + case GRADIENT_INTERPOLATE : r = interpolate_intensity(intensities, flags, sym, hd, kd, ld); break; - case GRADIENT_PHASED : + + case GRADIENT_PHASED : r = interpolate_phased_intensity(intensities, phases, flags, sym, hd, kd, ld); break; - default: + + default: ERROR("This gradient method not implemented yet.\n"); exit(1); } |