diff options
author | Thomas White <taw@physics.org> | 2009-12-07 16:54:42 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2009-12-07 16:54:42 +0100 |
commit | fc8ba89ffff7c8620f64c52ef0d27bd434879869 (patch) | |
tree | 397ab1044e05900a94a85a56dd3f1479d74090b2 /src/pattern_sim.c | |
parent | 64acc8cd7bcade6fd6ed4958c21580bb94c98d04 (diff) |
Random particle sizes
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 765b348d..a8e2a250 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -225,12 +225,9 @@ int main(int argc, char *argv[]) int na, nb, nc; - //na = 8*random()/RAND_MAX + 4; - //nb = 8*random()/RAND_MAX + 4; - //nc = 16*random()/RAND_MAX + 30; - na = 4; - nb = 4; - nc = 30; + na = 8*random()/RAND_MAX + 4; + nb = 8*random()/RAND_MAX + 4; + nc = 16*random()/RAND_MAX + 30; STATUS("Particle size = %i x %i x %i\n", na, nb, nc); /* Read quaternion from stdin */ @@ -256,7 +253,7 @@ int main(int argc, char *argv[]) image.twotheta = NULL; image.hdr = NULL; - get_diffraction(&image); + get_diffraction(&image, na, nb, nc); record_image(&image, !config_nowater, !config_nonoise, !config_nobloom); |