diff options
author | Thomas White <taw@physics.org> | 2011-05-11 17:27:40 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:26 +0100 |
commit | 6b56bc8d3eb6ce683b8864d9fb3d12741aa74eda (patch) | |
tree | 529ee758ff69db7c1832078f3c145d554785cff4 /src/partial_sim.c | |
parent | bc5fd6907120554ae0649032b5f88461c2b1788f (diff) |
Also mess up scale factors
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 6bf0a2c6..55e8521d 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -279,6 +279,14 @@ int main(int argc, char *argv[]) for ( i=0; i<n; i++ ) { + double osf; + + if ( random() > RAND_MAX/2 ) { + osf = 1.0; + } else { + osf = 2.0; + } + /* Set up a random orientation */ orientation = random_quaternion(); image.indexed_cell = cell_rotate(cell, orientation); @@ -286,7 +294,7 @@ int main(int argc, char *argv[]) snprintf(image.filename, 255, "(simulated %i)", i); image.reflections = find_intersections(&image, image.indexed_cell, 0); - calculate_partials(image.reflections, 1.0, full, sym); + calculate_partials(image.reflections, osf, full, sym); /* Give a slightly incorrect cell in the stream */ mess_up_cell(image.indexed_cell); |