aboutsummaryrefslogtreecommitdiff
path: root/src/scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-05-11 13:18:04 +0200
committerThomas White <taw@physics.org>2018-05-11 13:25:08 +0200
commitf6d95bc7f26a5900d001e98d7cf36e9a1981b7f0 (patch)
treefa9d1c671e5e064ff9284225be7d950fad878657 /src/scaling.c
parentb5008197d73329882cff1734a32e7aff02553eb8 (diff)
Fix up scaling definitions
Diffstat (limited to 'src/scaling.c')
-rw-r--r--src/scaling.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scaling.c b/src/scaling.c
index 7f9b4cff..cabc5952 100644
--- a/src/scaling.c
+++ b/src/scaling.c
@@ -267,7 +267,7 @@ int scale_one_crystal(Crystal *cr, const RefList *listR, int flags)
}
x[n] = s*s;
- y[n] = log(IhR) - log(pS) + log(LS) - log(IhS);
+ y[n] = log(LS) + log(IhS) -log(pS) - log(IhR);
w[n] = pS;
n++;
@@ -329,7 +329,7 @@ int scale_one_crystal(Crystal *cr, const RefList *listR, int flags)
}
crystal_set_osf(cr, exp(G));
- crystal_set_Bfac(cr, B);
+ crystal_set_Bfac(cr, -B);
free(x);
free(y);