From 928bb3071bb73650404161481d450d09ed25ae9a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 2 May 2018 11:59:48 +0200 Subject: Remove scale_all_to_reference --- src/partialator.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index a17e1b24..fc3f86c2 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -1334,12 +1334,6 @@ int main(int argc, char *argv[]) full = reference; } - /* Scale everything to the reference */ - STATUS("Initial scaling to reference...\n"); - if ( !no_scale ) { - scale_all_to_reference(crystals, n_crystals, full, nthreads); - } - /* Check rejection and write figures of merit */ check_rejection(crystals, n_crystals, full, max_B); show_all_residuals(crystals, n_crystals, full); @@ -1356,14 +1350,14 @@ int main(int argc, char *argv[]) if ( !no_pr ) { refine_all(crystals, n_crystals, full, nthreads, pmodel, 0, i+1, no_logs, sym, amb); - } else if ( !no_scale ) { - scale_all_to_reference(crystals, n_crystals, full, nthreads); } /* Create new reference if needed */ if ( reference == NULL ) { reflist_free(full); - scale_all(crystals, n_crystals, nthreads); + if ( !no_scale ) { + scale_all(crystals, n_crystals, nthreads); + } full = merge_intensities(crystals, n_crystals, nthreads, min_measurements, push_res, 1); @@ -1408,12 +1402,13 @@ int main(int argc, char *argv[]) STATUS("Final merge...\n"); if ( reference == NULL ) { reflist_free(full); - scale_all(crystals, n_crystals, nthreads); + if ( !no_scale ) { + scale_all(crystals, n_crystals, nthreads); + } full = merge_intensities(crystals, n_crystals, nthreads, min_measurements, push_res, 1); } else { - scale_all_to_reference(crystals, n_crystals, reference, nthreads); full = merge_intensities(crystals, n_crystals, nthreads, min_measurements, push_res, 1); } -- cgit v1.2.3