diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-02-06 20:07:56 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-02-06 20:07:56 +0100 |
commit | a1ee07e0887bd23491218301ad440a4ad2efb24f (patch) | |
tree | 855fcfa420bb3a7809773f8df41152d82f91dcf7 /src/partial_sim.c | |
parent | 53382f60c7f8955c016725885c04f510f7fe96ee (diff) |
Stuff
Diffstat (limited to 'src/partial_sim.c')
-rw-r--r-- | src/partial_sim.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/partial_sim.c b/src/partial_sim.c index 4e96fbbc..502e7028 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -252,7 +252,6 @@ static void run_job(void *vwargs, int cookie) struct queue_args *qargs = wargs->qargs; int i; Crystal *cr; - UnitCell *cell; RefList *reflections; cr = crystal_new(); @@ -268,9 +267,7 @@ static void run_job(void *vwargs, int cookie) /* Set up a random orientation */ orientation = random_quaternion(); - cell = cell_rotate(qargs->cell, orientation); - crystal_set_cell(cr, cell); - cell_free(cell); + crystal_set_cell(cr, cell_rotate(qargs->cell, orientation)); snprintf(wargs->image.filename, 255, "dummy.h5"); reflections = find_intersections(&wargs->image, cr); |