aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-07-31 17:07:37 +0200
committerThomas White <taw@physics.org>2013-07-31 17:09:36 +0200
commitbb98d82fdc16dff7374b19e572fe8a310136d34b (patch)
treeb285d381ab47ba00ef1e78189e9f1d610c63cfe3 /src
parent86dd02420afb7ef40e8a2b570f6751b7d56e47a3 (diff)
Refine divergence as well
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c2
-rw-r--r--src/post-refinement.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index b0e70e1f..b1d99c86 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 0.0; /* FIXME! */
+ return 2.0*crystal_get_profile_radius(cr)*ds;
}
diff --git a/src/post-refinement.h b/src/post-refinement.h
index 5e0c184f..bdd1eb10 100644
--- a/src/post-refinement.h
+++ b/src/post-refinement.h
@@ -55,8 +55,8 @@ enum {
REF_CSX,
REF_CSY,
REF_CSZ,
- NUM_PARAMS,
REF_DIV,
+ NUM_PARAMS,
REF_R,
};