diff options
author | Thomas White <taw@physics.org> | 2015-08-31 17:22:26 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-08-31 17:22:26 +0200 |
commit | e9caa5bb6a12138b857bdd214ba7197b2f2e43f1 (patch) | |
tree | 2d22a67ad9b918fac2d5cd3c7f13dbafc0409302 /src/rejection.c | |
parent | f64e11a71fb860ec0c7f421c359b8b5125a8c470 (diff) |
partialator: Add --max-rel-B
Diffstat (limited to 'src/rejection.c')
-rw-r--r-- | src/rejection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rejection.c b/src/rejection.c index cea43701..ef185034 100644 --- a/src/rejection.c +++ b/src/rejection.c @@ -193,7 +193,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; @@ -204,7 +204,7 @@ void check_rejection(Crystal **crystals, int n, RefList *full) for ( i=0; i<n; i++ ) { /* Reject if B factor modulus is very large */ - if ( fabs(crystal_get_Bfac(crystals[i])) > 1e-18 ) { + if ( fabs(crystal_get_Bfac(crystals[i])) > max_B ) { crystal_set_user_flag(crystals[i], PRFLAG_BIGB); } |