From e8eddcc94ed1d461ab42250d3fa51e3ef8f04926 Mon Sep 17 00:00:00 2001 From: Helen Ginn Date: Fri, 11 Nov 2016 16:05:58 +0000 Subject: Fussiness --- libcrystfel/src/taketwo.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index 1344d155..91fea28f 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -635,8 +635,9 @@ static int grow_network(gsl_matrix *rot, struct SpotVec *obs_vecs, int match_found = -1; STATUS("member_num = %i\n", member_num); - signed int next_index = find_next_index(rot, obs_vecs, obs_vec_count, - obs_members, match_members, + signed int next_index = find_next_index(rot, obs_vecs, + obs_vec_count, obs_members, + match_members, start, member_num, &match_found); @@ -671,6 +672,7 @@ static int grow_network(gsl_matrix *rot, struct SpotVec *obs_vecs, } /* Deal with this shit after coffee */ + /* (note: turns out there's no shit to deal with) */ return ( member_num > NETWORK_MEMBER_THRESHOLD ); } @@ -685,8 +687,8 @@ static signed int spot_idx(struct rvec *rlp) return -1; } -static int start_seed(struct SpotVec *obs_vecs, int i, int j, - int i_match, int j_match, gsl_matrix **rotation) +static int start_seed(struct SpotVec *obs_vecs, int obs_vec_count, int i, + int j, int i_match, int j_match, gsl_matrix **rotation) { gsl_matrix *rot_mat = gsl_matrix_calloc(3, 3); @@ -752,7 +754,7 @@ static int find_seed(struct SpotVec *obs_vecs, int obs_vec_count, /* We have seeds! Pass each of them through the seed-starter */ int k; for ( k=0; k