aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-28 18:20:56 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:00 +0100
commit0dcf9c99fa6e3e78524b34ce24a40011c2554b3c (patch)
treeba4c0dea8d0e002590550b460fa1e63a74d65d7e /src/index.c
parent8f43ca33d5edd9f75660174870e16afe8b9913bd (diff)
Update sanity check
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;