aboutsummaryrefslogtreecommitdiff
path: root/src/compare_hkl.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-07-01 19:02:09 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:52 +0100
commit87d72e34a321aa53ad4e89f90058d5867cbd3261 (patch)
tree175ac7382109beb3a6c1888e6e33944dbbb8ea4f /src/compare_hkl.c
parent588d243654d81e13aaee0e04ae4d9cce66acea38 (diff)
compare_hkl: Take counts into account
Diffstat (limited to 'src/compare_hkl.c')
-rw-r--r--src/compare_hkl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compare_hkl.c b/src/compare_hkl.c
index b80546c8..4c17fda3 100644
--- a/src/compare_hkl.c
+++ b/src/compare_hkl.c
@@ -110,6 +110,10 @@ int main(int argc, char *argv[])
set_count(c1, 0, 0, 0, 0);
set_count(c2, 0, 0, 0, 0);
+ /* Divide by number of counts, since we're not interested in them */
+ divide_down(ref1, c1);
+ divide_down(ref2, c2);
+
for ( h=-INDMAX; h<INDMAX; h++ ) {
for ( k=-INDMAX; k<INDMAX; k++ ) {
for ( l=-INDMAX; l<INDMAX; l++ ) {