aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-22 13:58:38 +0200
committerThomas White <taw@physics.org>2014-05-22 13:58:38 +0200
commit947fb90facb9afd6b5bbc1e7762644c073955a71 (patch)
tree8029f856bc54c429e4f7869f6fba86dc2112c301
parentd12da8c92cd87b9ea9ca5aad609f9a354ee11a98 (diff)
partialator: Recalculate partialities after reverting crystal
-rw-r--r--src/post-refinement.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 80189d0a..0f001a21 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -735,7 +735,10 @@ struct prdata pr_refine(Crystal *cr, const RefList *full,
if ( 3*n_lost > n_total ) {
revert_crystal(cr, backup);
+ update_partialities_2(cr, pmodel, &n_gained, &n_lost,
+ &mean_p_change);
crystal_set_user_flag(cr, 3);
+ break;
}
i++;