aboutsummaryrefslogtreecommitdiff
path: root/src/scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-02 11:59:48 +0200
committerThomas White <taw@physics.org>2018-05-02 14:39:59 +0200
commit928bb3071bb73650404161481d450d09ed25ae9a (patch)
treefeddf6a04998d87d48028b89f90dd0f75c8e7a65 /src/scaling.c
parent5996d68002f2f82393d7253b03eb283dd14746b1 (diff)
Remove scale_all_to_reference
Diffstat (limited to 'src/scaling.c')
-rw-r--r--src/scaling.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/scaling.c b/src/scaling.c
index f4c93c66..39541926 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -448,22 +448,6 @@ void scale_all(Crystal **crystals, int n_crystals, int nthreads)
}
-static void scale_crystal_linear(void *task, int id)
-{
- struct scale_args *pargs = task;
- int r;
- double G;
-
- /* Simple iterative algorithm */
- r = linear_scale(pargs->full, crystal_get_reflections(pargs->crystal), &G, 0);
- if ( r == 0 ) {
- crystal_set_osf(pargs->crystal, G);
- } else {
- crystal_set_user_flag(pargs->crystal, PRFLAG_SCALEBAD);
- }
-}
-
-
/* Calculates G, by which list2 should be multiplied to fit list1 */
int linear_scale(const RefList *list1, const RefList *list2, double *G,
int complain_loudly)
@@ -598,26 +582,3 @@ int linear_scale(const RefList *list1, const RefList *list2, double *G,
return 0;
}
-
-void scale_all_to_reference(Crystal **crystals, int n_crystals,
- RefList *reference, int nthreads)
-{
- struct scale_args task_defaults;
- struct queue_args qargs;
-
- task_defaults.crystal = NULL;
-
- qargs.task_defaults = task_defaults;
- qargs.n_crystals = n_crystals;
- qargs.crystals = crystals;
-
- /* Don't have threads which are doing nothing */
- if ( n_crystals < nthreads ) nthreads = n_crystals;
-
- qargs.task_defaults.full = reference;
- qargs.n_started = 0;
- qargs.n_done = 0;
- qargs.n_reflections = 0;
- run_threads(nthreads, scale_crystal_linear, get_crystal, done_crystal,
- &qargs, n_crystals, 0, 0, 0);
-}