diff options
author | Thomas White <taw@physics.org> | 2015-07-08 17:46:16 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-07-08 17:50:13 +0200 |
commit | 22dee8348b165d33262112ed1bbaf7f574b96c7e (patch) | |
tree | 67f1c125f5b481a5bf8bb8b15b8d7f5a7f9fdff8 /src | |
parent | 224e98bf0930f654fcfdd4be8ba6cc54510f195a (diff) |
Fix PR gradients
D'oh! This must have crept in during a big tidyup before a commit
Diffstat (limited to 'src')
-rw-r--r-- | src/post-refinement.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 416304ab..139b8b9a 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -210,7 +210,7 @@ double gradient(Crystal *cr, int k, Reflection *refl, PartialityModel pmodel) Rghigh = volume_fraction_rgradient(rhigh, R, pmodel); gr = 4.0*psph/(3.0*D) + (4.0*R/(3.0*D))*(Rglow - Rghigh); - return gr/p; + return gr; } @@ -229,12 +229,12 @@ double gradient(Crystal *cr, int k, Reflection *refl, PartialityModel pmodel) ds = 2.0 * resolution(crystal_get_cell(cr), hs, ks, ls); gr = (ds/2.0)*(glow+ghigh) - 4.0*R*psph*ds/(3.0*D*D); - return gr/p; + return gr; } gr = r_gradient(crystal_get_cell(cr), k, refl, image) * (glow-ghigh); - return gr/p; + return gr; } |