aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2015-05-13 15:21:50 +0200
committerThomas White <taw@physics.org>2015-05-19 13:57:51 +0200
commite2e34ca49492a65c523b49794974beeff9400afe (patch)
treec4f0c3f739a0bad9d3e76b1fd452b7319e96aee5 /src/post-refinement.c
parent26117fc5261b1f8a57cca3d854cda96817c09a6b (diff)
Pass verbosity through to pr_iterate()
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index a6631162..7d4fdda2 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -335,7 +335,8 @@ static void apply_shift(Crystal *cr, int k, double shift)
/* Perform one cycle of post refinement on 'image' against 'full' */
static double pr_iterate(Crystal *cr, const RefList *full,
- PartialityModel pmodel, int no_scale, int *n_filtered)
+ PartialityModel pmodel, int no_scale, int *n_filtered,
+ int verbose)
{
gsl_matrix *M;
gsl_vector *v;
@@ -346,7 +347,6 @@ static double pr_iterate(Crystal *cr, const RefList *full,
RefList *reflections;
double max_shift;
int nref = 0;
- const int verbose = 1;
int num_params = 0;
enum gparam rv[32];
double G, B;
@@ -614,7 +614,7 @@ struct prdata pr_refine(Crystal *cr, const RefList *full,
{
double dev;
int i;
- const int verbose = 1;
+ int verbose = 0;
struct prdata prdata;
prdata.refined = 0;
@@ -642,7 +642,7 @@ struct prdata pr_refine(Crystal *cr, const RefList *full,
&bsx, &bsy, &bsz, &csx, &csy, &csz);
if ( verbose ) check_gradient_stuff(cr, full);
- pr_iterate(cr, full, pmodel, no_scale, &prdata.n_filtered);
+ pr_iterate(cr, full, pmodel, no_scale, &prdata.n_filtered, verbose);
update_partialities(cr, pmodel);