aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-08-01 16:07:28 +0200
committerThomas White <taw@physics.org>2013-08-01 16:07:28 +0200
commit3e5e03210ed8588666f9ede00b9907524f27634d (patch)
treec2e0a6de9cb3db0d8aca7bd88b075750605c1896 /src
parent4ab308554c1f170545bf1dd9d9990f27fe1caf4e (diff)
Fix Lorentz gradient
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 3082aa74..3716d728 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -238,7 +238,7 @@ double l_gradient(Crystal *cr, int k, Reflection *refl, PartialityModel pmodel)
ds = 2.0 * resolution(crystal_get_cell(cr), hs, ks, ls);
- return 2.0*crystal_get_profile_radius(cr)*ds;
+ return -ds*pow(get_lorentz(refl), 2.0) / crystal_get_profile_radius(cr);
}