aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reflections.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reflections.c b/src/reflections.c
index a2d94662..bd9b446d 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -70,10 +70,11 @@ void write_reflections(const char *filename, unsigned int *counts,
}
if ( zone_axis && (l != 0) ) continue;
- intensity = lookup_phase(ref, h, k, l) / N;
+ /* Divide measured intensity by the number of counts */
+ intensity = lookup_intensity(ref, h, k, l) / N;
if ( phases != NULL ) {
double p;
- p = lookup_intensity(phases, h, k, l);
+ p = lookup_phase(phases, h, k, l);
snprintf(ph, 31, "%8.6f", p);
} else {
strncpy(ph, " -", 31);