diff options
author | Thomas White <taw@physics.org> | 2015-05-07 17:05:06 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-05-13 13:48:33 +0200 |
commit | 14de3d1cf8e7f9ed646f6f6804bf2e22207f5e15 (patch) | |
tree | f613529b207aa373965b0f26cfb2aca3543ec063 /src | |
parent | d59747a4755f730c165c2a20f75d1df231419091 (diff) |
Fix totally bogus convergence criterion
Diffstat (limited to 'src')
-rw-r--r-- | src/post-refinement.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 4214c1ec..00746c0f 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -522,7 +522,6 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, int i; const int verbose = 0; struct prdata prdata; - double mean_p_change = 0.0; prdata.refined = 0; prdata.n_filtered = 0; @@ -559,7 +558,7 @@ struct prdata pr_refine(Crystal *cr, const RefList *full, i++; - } while ( (mean_p_change > 0.01) && (i < MAX_CYCLES) ); + } while ( i < MAX_CYCLES ); if ( crystal_get_user_flag(cr) == 0 ) { prdata.refined = 1; |