aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-25 17:50:51 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:28 +0100
commit2c2bb0426ceff2ddc9284b506102b967d768dadf (patch)
tree0f9fc7380c0cf1555b63a535a564e0d3caba0c7b /src/post-refinement.c
parent54fee1620387697a5624d9573f541bf0c081ae11 (diff)
PR gradient check
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 4ebaffd9..285fe037 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -32,23 +32,6 @@
#define MAX_CYCLES (5)
-/* Refineable parameters */
-enum {
- REF_ASX,
- REF_BSX,
- REF_CSX,
- REF_ASY,
- REF_BSY,
- REF_CSY,
- REF_ASZ,
- REF_BSZ,
- REF_CSZ,
- NUM_PARAMS,
- REF_DIV,
- REF_R,
-};
-
-
/* Returns dp/dr at "r" */
static double partiality_gradient(double r, double profile_radius)
{
@@ -86,7 +69,7 @@ static double partiality_rgradient(double r, double profile_radius)
/* Return the gradient of parameter 'k' given the current status of 'image'. */
-static double gradient(struct image *image, int k, Reflection *refl, double r)
+double gradient(struct image *image, int k, Reflection *refl, double r)
{
double ds, tt, azix, aziy;
double nom, den;