aboutsummaryrefslogtreecommitdiff
path: root/src/rejection.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-11-18 17:07:32 +0100
committerThomas White <taw@physics.org>2015-11-18 17:07:32 +0100
commit40dd7ff04a44688544e22cc3a0384bef808abc64 (patch)
tree50349b6b9cb9f01f325839b28615f422a76e5187 /src/rejection.c
parent89949625d5e390488f30746743709614b9827d15 (diff)
Move B factor limit to general rejection function
Diffstat (limited to 'src/rejection.c')
-rw-r--r--src/rejection.c6
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++;
}