aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-20 16:58:27 +0100
committerThomas White <taw@physics.org>2010-03-20 16:58:27 +0100
commitb2db1f5f8883c4e1b3d527cc034e652f15f0c02e (patch)
treefe162d0ca73daa63b040e057fceb67a7aac864c3 /src/reflections.c
parent5abe14d1e4c3287df71bb5c13fe3c6846aec017b (diff)
get_hkl: Rationalise and make it work properly
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c
index 7ab187aa..90f8b116 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -47,7 +47,6 @@ void write_reflections(const char *filename, unsigned int *counts,
fprintf(fh, "angle %5.3f deg\n", rad2deg(gamma));
fprintf(fh, "scale 10\n");
} else {
-
fprintf(fh, " h k l I sigma(I) 1/d / nm^-1\n");
}
@@ -64,9 +63,9 @@ void write_reflections(const char *filename, unsigned int *counts,
} else {
N = 1;
}
+ if ( zone_axis && (l != 0) ) continue;
F = lookup_intensity(ref, h, k, l) / N;
- if ( zone_axis && (l != 0) ) continue;
if ( cell != NULL ) {
s = 2.0*resolution(cell, h, k, l);