From 8cbe3b3e5fbd4b066f1477b4efd4e6251d1923b4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 28 Feb 2012 16:28:14 +0100 Subject: partial_sim: Lock reflection while increasing the number of "measurements" --- src/partial_sim.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/partial_sim.c') diff --git a/src/partial_sim.c b/src/partial_sim.c index 8d885901..7a60f5c8 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -125,8 +125,10 @@ static void calculate_partials(RefList *partial, double osf, } else { If = get_intensity(rfull); if ( random_intensities ) { + lock_reflection(rfull); int red = get_redundancy(rfull); set_redundancy(rfull, red+1); + unlock_reflection(rfull); } } -- cgit v1.2.3