aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-04 16:46:28 +0200
committerThomas White <taw@physics.org>2018-05-07 10:08:02 +0200
commit5c39df2b244b20e546804caac05ef7d1ae8a07ed (patch)
tree07d47373623fb4560e1d5b9531dae7bb7b87ea2d /src
parent1ebacfaefaf609f148beb858223db875b5b5e269 (diff)
Remove unnecessary scaling loop
Diffstat (limited to 'src')
-rw-r--r--src/scaling.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/scaling.c b/src/scaling.c
index 238e97ec..bee8e5e5 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -70,24 +70,7 @@ struct queue_args
static void scale_crystal(void *task, int id)
{
struct scale_args *pargs = task;
- int i, done;
- double old_dev;
-
- old_dev = log_residual(pargs->crystal, pargs->full, 0, NULL, NULL);
-
- i = 0;
- done = 0;
- do {
-
- double dev;
- scale_one_crystal(pargs->crystal, pargs->full, pargs->flags);
- dev = log_residual(pargs->crystal, pargs->full, 0, 0, NULL);
- if ( fabs(dev - old_dev) < dev*0.01 ) done = 1;
-
- i++;
- old_dev = dev;
-
- } while ( i < 10 && !done );
+ scale_one_crystal(pargs->crystal, pargs->full, pargs->flags);
}