diff options
author | Thomas White <taw@physics.org> | 2012-02-28 16:28:14 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-28 16:28:14 +0100 |
commit | 8cbe3b3e5fbd4b066f1477b4efd4e6251d1923b4 (patch) | |
tree | 80cd8de9f1049112d620f85b94f600fbc15395a1 /src | |
parent | 83632f0d22dfcc82dfb8d139bf7a37df1f8471a7 (diff) |
partial_sim: Lock reflection while increasing the number of "measurements"
Diffstat (limited to 'src')
-rw-r--r-- | src/partial_sim.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |