diff options
author | Thomas White <taw@physics.org> | 2015-08-14 17:51:21 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-08-14 17:51:21 +0200 |
commit | 48d50787dbc6d0ac911e3999f8d0a151777857d9 (patch) | |
tree | 36c235e941b24d125bc802f7936a10efd575a9d0 /libcrystfel | |
parent | d13e46adeee7a763304d656007b9fa686fcfd6a4 (diff) |
Fussiness
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/asdf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libcrystfel/src/asdf.c b/libcrystfel/src/asdf.c index ae802aab..e5d3466f 100644 --- a/libcrystfel/src/asdf.c +++ b/libcrystfel/src/asdf.c @@ -891,8 +891,8 @@ void swap(int *a, int *b) { } /* Generate triplets of integers < N_reflections in random sequence */ -static int **generate_triplets(int N_reflections, int N_triplets_max, - int *N) { +static int **generate_triplets(int N_reflections, int N_triplets_max, int *N) +{ int i, j, k, l, n; /* Number of triplets = c_n^3 if n - number of reflections */ @@ -951,9 +951,9 @@ static int **generate_triplets(int N_reflections, int N_triplets_max, triplets[n][2] = k; n++; - } + } } - + return triplets; } @@ -966,7 +966,7 @@ static int index_refls(gsl_vector **reflections, int N_reflections, int i, k, n; int N_triplets; - int **triplets = generate_triplets(N_reflections, N_triplets_max, + int **triplets = generate_triplets(N_reflections, N_triplets_max, &N_triplets); if ( N_triplets == 0 ) { return 0; @@ -1125,7 +1125,7 @@ int run_asdf(struct image *image, IndexingPrivate *ipriv) if ( N_reflections == 0 ) return 0; j = index_refls(reflections, N_reflections, d_max, volume_min, - volume_max, LevelFit, IndexFit, N_triplets_max, c, + volume_max, LevelFit, IndexFit, N_triplets_max, c, dp->fftw); for ( i = 0; i < N_reflections; i++ ) { |