aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-06-28 23:55:38 -0700
committerThomas White <taw@physics.org>2013-06-28 23:55:52 -0700
commit1a7d9a0a602e86c621220f16e8b40a119448b8c1 (patch)
tree325be1e40f3dec173e4e64803d68febabf015320 /src
parent0852a8ea1b4dad00f789093bba9123014670f5ef (diff)
partial_sim: Initialise crystal mosaicity, num peaks and num saturated peaks
Diffstat (limited to 'src')
-rw-r--r--src/partial_sim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c
index 87d30f39..3369f2fd 100644
--- a/src/partial_sim.c
+++ b/src/partial_sim.c
@@ -277,6 +277,7 @@ static void run_job(void *vwargs, int cookie)
osf = gaussian_noise(1.0, qargs->osf_stddev);
} while ( osf <= 0.0 );
crystal_set_osf(cr, osf);
+ crystal_set_mosaicity(cr, 0.0);
crystal_set_profile_radius(cr, wargs->image.beam->profile_radius);
/* Set up a random orientation */
@@ -593,6 +594,8 @@ int main(int argc, char *argv[])
image.crystals = NULL;
image.n_crystals = 0;
image.indexed_by = INDEXING_NONE;
+ image.num_peaks = 0;
+ image.num_saturated_peaks = 0;
if ( random_intensities ) {
full = reflist_new();