diff options
Diffstat (limited to 'src/rejection.c')
-rw-r--r-- | src/rejection.c | 6 |
1 files changed, 5 insertions, 1 deletions
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<n; i++ ) { + if ( fabs(crystal_get_Bfac(crystals[i])) > max_B ) { + crystal_set_user_flag(crystals[i], PRFLAG_BIGB); + } if ( crystal_get_user_flag(crystals[i]) == 0 ) n_acc++; } |