aboutsummaryrefslogtreecommitdiff
path: root/src/rejection.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-11-16 10:28:05 +0100
committerThomas White <taw@physics.org>2018-11-16 10:28:05 +0100
commit6f6402ae168884b9332f07d3cf9b78ffa8cedb53 (patch)
tree143aecb93acd9138048661858ca733309647e740 /src/rejection.c
parent8a863b1aaaea5dabe9106527bfad23f7e241f7d7 (diff)
Require deltaCChalf to actually be negative before rejecting
Diffstat (limited to 'src/rejection.c')
-rw-r--r--src/rejection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rejection.c b/src/rejection.c
index 55546bbc..c07287b3 100644
--- a/src/rejection.c
+++ b/src/rejection.c
@@ -313,7 +313,7 @@ static void check_deltacchalf(Crystal **crystals, int n, RefList *full)
STATUS("deltaCChalf = %f ± %f %%\n", mean*100.0, sd*100.0);
for ( i=0; i<n; i++ ) {
- if ( vals[i] < mean-2.0*sd ) {
+ if ( (vals[i]<0.0) && (vals[i] < mean-2.0*sd) ) {
crystal_set_user_flag(crystals[i], PRFLAG_DELTACCHALF);
}
}