aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-07-30 15:47:33 +0200
committerThomas White <taw@physics.org>2013-07-31 17:09:36 +0200
commitb4972dfd829faad526d77c4650830341bde135cb (patch)
treee54cb47476c58a6cdff1bd4fd82653f52de290e9
parent51c7d76b4586bd117c8171b46040a78f68edbd85 (diff)
Use the correct reference list for selection
-rw-r--r--src/partialator.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/partialator.c b/src/partialator.c
index db25a8ca..a282744e 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -624,13 +624,8 @@ int main(int argc, char *argv[])
STATUS("Post refinement cycle %i of %i\n", i+1, n_iter);
- if ( reference == NULL ) {
- comp = full;
- } else {
- comp = reference;
- }
-
/* Refine the geometry of all patterns to get the best fit */
+ comp = (reference == NULL) ? full : reference;
select_reflections_for_refinement(crystals, n_crystals,
comp, have_reference);
refine_all(crystals, n_crystals, det, comp, nthreads, pmodel);