From 40dd7ff04a44688544e22cc3a0384bef808abc64 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 18 Nov 2015 17:07:32 +0100 Subject: Move B factor limit to general rejection function --- src/rejection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/rejection.c') diff --git a/src/rejection.c b/src/rejection.c index e9496932..441a83e6 100644 --- a/src/rejection.c +++ b/src/rejection.c @@ -192,7 +192,7 @@ static void show_duds(Crystal **crystals, int n_crystals) } -void check_rejection(Crystal **crystals, int n, RefList *full) +void check_rejection(Crystal **crystals, int n, RefList *full, double max_B) { int i; int n_acc = 0; @@ -200,7 +200,11 @@ void check_rejection(Crystal **crystals, int n, RefList *full) /* Check according to CCs FIXME: Disabled */ //if ( full != NULL ) check_ccs(crystals, n, full); + for ( i=0; i max_B ) { + crystal_set_user_flag(crystals[i], PRFLAG_BIGB); + } if ( crystal_get_user_flag(crystals[i]) == 0 ) n_acc++; } -- cgit v1.2.3