aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-07-11 22:28:18 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:32 +0100
commit742b0e60d2723f6a8f8e4f3485333ee355339158 (patch)
tree3f52b3daa164094abdf67631efe12b934026c8c7
parent973357663ba4166c39b964b2a8a7f79b55e3a91e (diff)
partial_sim: Show "true" redundancies in output HKL file
-rw-r--r--src/partial_sim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index d2c33d9a..ee48f0f6 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -94,6 +94,10 @@ static void calculate_partials(RefList *partial, double osf,
}
} else {
If = get_intensity(rfull);
+ if ( random_intensities ) {
+ int red = get_redundancy(rfull);
+ set_redundancy(rfull, red+1);
+ }
}
Ip = osf * p * If;