diff options
author | Thomas White <taw@physics.org> | 2017-02-17 15:52:50 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-27 17:12:41 +0100 |
commit | 10760e1c4ea851b00173d0105a8aa8b22461a52f (patch) | |
tree | 3f25decee582600811254f8e719a1ad42ca1abe7 /libcrystfel/src/geometry.c | |
parent | d7974392f765b29e0d0f73cf884bb8cdc3087314 (diff) |
Minimisation fixes
Diffstat (limited to 'libcrystfel/src/geometry.c')
-rw-r--r-- | libcrystfel/src/geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index 0694169c..43cf25f2 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -265,7 +265,7 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, kmin = 1.0/(image->lambda + image->lambda*image->bw); knom = 1.0/image->lambda; kmax = 1.0/(image->lambda - image->lambda*image->bw); - if ( (k1>kmax) || (k0<kmin) ) return NULL; + if ( (updateme == NULL) && ((k1>kmax) || (k0<kmin)) ) return NULL; /* Calculate excitation error */ dcs = distance3d(0.0, 0.0, -knom, xl, yl, zl); |