diff options
author | Thomas White <taw@physics.org> | 2023-06-20 11:34:54 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-07-28 13:22:05 +0200 |
commit | bf7b4b647d1e5e2e7d08bca580585d57b2abb5e6 (patch) | |
tree | 201a46b9142c12bd6fd800a28732d32f06687be0 /libcrystfel | |
parent | 5d52dae0bdd7012246528cb94146d28668779949 (diff) |
Remove a #define
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/predict-refine.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index ca47ba0c..b1f792b9 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -45,9 +45,6 @@ /** \file predict-refine.h */ -/* Maximum number of iterations of NLSq to do for each image per macrocycle. */ -#define MAX_CYCLES (10) - /* Weighting of excitation error term (m^-1) compared to position term (m) */ #define EXC_WEIGHT (4e-20) @@ -785,8 +782,8 @@ int refine_prediction(struct image *image, Crystal *cr, Mille *mille) //STATUS("Initial residual = %e\n", // pred_residual(rps, n, image->detgeom)); - /* Refine */ - for ( i=0; i<MAX_CYCLES; i++ ) { + /* Refine (max 10 cycles) */ + for ( i=0; i<10; i++ ) { update_predictions(cr); if ( iterate(rps, n, crystal_get_cell(cr), image, &total_x, &total_y) ) |