aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-20 16:30:19 +0200
committerThomas White <taw@physics.org>2019-06-21 15:37:21 +0200
commite8f3015616bc7232085b3ae5ceb94f82a941c56e (patch)
tree4ca84b814a30b9e5e5ded4dbb023e13da307f920 /src
parent30a677f1a5c177b56b4d171af0e133445f36900b (diff)
Actually prevent the use of free-flagged reflections in refinement
Since we are now using residual() in a numerical minimisation, it's important that it uses either only free-flagged reflections, or only non-free-flagged ones.
Diffstat (limited to 'src')
-rw-r--r--src/merge.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/merge.c b/src/merge.c
index 8017182b..96bd2e3e 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -384,7 +384,7 @@ double residual(Crystal *cr, const RefList *full, int free,
double I_full;
double int1, int2;
- if ( free && !get_flag(refl) ) continue;
+ if ( free != get_flag(refl) ) continue;
get_indices(refl, &h, &k, &l);
res = resolution(cell, h, k, l);