From 0dcf9c99fa6e3e78524b34ce24a40011c2554b3c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 28 Sep 2010 18:20:56 +0200 Subject: Update sanity check --- src/index.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index b5d9da9e..8d4b5dd6 100644 --- a/src/index.c +++ b/src/index.c @@ -99,8 +99,7 @@ static void write_drx(struct image *image) } -void index_pattern(struct image *image, UnitCell *cell, IndexingMethod indm, - int no_match, int verbose, IndexingPrivate *ipriv) +void map_all_peaks(struct image *image) { int i; int nc = 0; @@ -121,7 +120,15 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod indm, if ( nc ) { ERROR("Failed to map %i reflections\n", nc); } +} + + +void index_pattern(struct image *image, UnitCell *cell, IndexingMethod indm, + int no_match, int verbose, IndexingPrivate *ipriv) +{ + int i; + map_all_peaks(image); write_drx(image); image->ncells = 0; -- cgit v1.2.3