aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-26 16:38:04 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commit7b5d724ef01583ab2542242c887e4863bda4d9cd (patch)
tree90da695c4ff5e4aae54f326fab9ebf4268348f52 /src/post-refinement.c
parentc3c5ba136d1a4de7ab053f38724ece8c415b110d (diff)
Post refinement should not touch the scale factors
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 20b8eeee..98bc319d 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -44,7 +44,6 @@ enum {
REF_ASZ,
REF_BSZ,
REF_CSZ,
- REF_SCALE,
REF_DIV,
REF_R,
};
@@ -128,9 +127,6 @@ static double gradient(struct image *image, int k, Reflection *refl, double r)
* of excitation error wrt whatever. */
switch ( k ) {
- case REF_SCALE :
- return -p*pow(image->osf, -2.0);
-
case REF_DIV :
nom = sqrt(2.0) * ds * sin(image->div/2.0);
den = sqrt(1.0 - cos(image->div/2.0));
@@ -213,11 +209,6 @@ static void apply_shift(struct image *image, int k, double shift)
{
switch ( k ) {
- case REF_SCALE :
- image->osf += shift;
- STATUS("New OSF = %f (shift %e)\n", image->osf, shift);
- break;
-
case REF_DIV :
STATUS("Shifting div by %e\n", shift);
image->div += shift;