From 19f977c6d62ffca9f13bcdefef32b5b27a326b7a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 26 Jun 2014 11:22:24 +0200 Subject: Rationalise counting of filtered eigenvalues --- src/post-refinement.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/post-refinement.c') diff --git a/src/post-refinement.c b/src/post-refinement.c index 535f7cff..5de8a246 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -469,7 +469,7 @@ static gsl_vector *solve_svd(gsl_vector *v, gsl_matrix *M, int *n_filt, /* Perform one cycle of post refinement on 'image' against 'full' */ static double pr_iterate(Crystal *cr, const RefList *full, - PartialityModel pmodel, struct prdata *prdata) + PartialityModel pmodel, int *n_filtered) { gsl_matrix *M; gsl_vector *v; @@ -482,6 +482,8 @@ static double pr_iterate(Crystal *cr, const RefList *full, int nref = 0; const int verbose = 0; + *n_filtered = 0; + reflections = crystal_get_reflections(cr); M = gsl_matrix_calloc(NUM_PARAMS, NUM_PARAMS); @@ -574,7 +576,7 @@ static double pr_iterate(Crystal *cr, const RefList *full, } max_shift = 0.0; - shifts = solve_svd(v, M, &prdata->n_filtered, verbose); + shifts = solve_svd(v, M, n_filtered, verbose); if ( shifts != NULL ) { for ( param=0; param