aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-05 16:25:54 +0200
committerThomas White <taw@physics.org>2019-07-17 09:22:23 +0200
commita15fa8a9103946b341d1e852c80ac80127d638d1 (patch)
treedbf103607a17e5b2c58aee0ca2f3f85e9df7833a
parent7601a2956156569461498a76105267129e848fb0 (diff)
Don't repeat scaling when refining
This seems to be a major cause of "going off the rails", and the surfaces look reasonable (in fact, better) without it. Plus, if the user says --no-scale, there should be no scaling at all.
-rw-r--r--src/post-refinement.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 6db1a48a..f98d56fd 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -655,11 +655,6 @@ static void do_pr_refine(Crystal *cr, const RefList *full,
try_reindex(cr, full, sym, amb, scaleflags);
- if ( scale_one_crystal(cr, full, scaleflags | SCALE_VERBOSE_ERRORS) ) {
- ERROR("Bad scaling at start of refinement.\n");
- return;
- }
-
zero_alter(&alter);
priv.cr = cr;
@@ -719,7 +714,6 @@ static void do_pr_refine(Crystal *cr, const RefList *full,
apply_parameters(cr, cr, alter);
update_predictions(cr);
calculate_partialities(cr, PMODEL_XSPHERE);
- scale_one_crystal(cr, full, scaleflags);
if ( write_logs ) {
write_gridscan(cr, full, cycle, serial, scaleflags);