aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c11
1 files changed, 9 insertions, 2 deletions
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;