diff options
author | Thomas White <taw@physics.org> | 2023-06-07 10:21:33 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | bbfee92698c5bc2d5ab91782ab5215884da1c93b (patch) | |
tree | 2d06b320365e9fa9fa420d7e57a18663916ee784 | |
parent | fde597cea70db2ec7216c771c55ab7d5a3ad93eb (diff) |
Fix incorrect sign of clen gradient
-rw-r--r-- | libcrystfel/src/geometry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index e454b73d..8e8a445d 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -1138,7 +1138,7 @@ double x_gradient(int param, Reflection *refl, UnitCell *cell, return 0; case GPARAM_CLEN : - return xl / (kpred+zl); + return -xl / (kpred+zl); } @@ -1199,7 +1199,7 @@ double y_gradient(int param, Reflection *refl, UnitCell *cell, return -1; case GPARAM_CLEN : - return yl / (kpred+zl); + return -yl / (kpred+zl); } |