diff options
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/geometry.c | 5 | ||||
-rw-r--r-- | libcrystfel/src/geometry.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index 92284c3d..ca91082b 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -370,6 +370,11 @@ double r_gradient(UnitCell *cell, int k, Reflection *refl, struct image *image) case GPARAM_CSZ : return - ls * cos(phi); + case GPARAM_DETX : + case GPARAM_DETY : + case GPARAM_CLEN : + return 0.0; + } ERROR("No r gradient defined for parameter %i\n", k); diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h index e0d21dda..cecdc4f1 100644 --- a/libcrystfel/src/geometry.h +++ b/libcrystfel/src/geometry.h @@ -63,7 +63,7 @@ typedef enum { /* Enumeration of parameters which may want to be refined */ -enum { +enum gparam { GPARAM_ASX, GPARAM_ASY, GPARAM_ASZ, @@ -75,6 +75,9 @@ enum { GPARAM_CSZ, GPARAM_R, GPARAM_DIV, + GPARAM_DETX, + GPARAM_DETY, + GPARAM_CLEN }; |