aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-02-02 15:04:41 +0100
committerThomas White <taw@bitwiz.org.uk>2010-02-02 15:04:41 +0100
commit9c3d9caa7b6fd066c53abf5773a05a83b30d3688 (patch)
tree6fba37776a649eb2e36dd82ad77b25e18d10246c /src/index.c
parentd19a20b8c457e7e433dcd18e857de34f3f73f834 (diff)
Match the unit cell to a model cell after indexing
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index b3c0b7e7..a20ad3a5 100644
--- a/src/index.c
+++ b/src/index.c
@@ -96,7 +96,16 @@ void index_pattern(struct image *image, int no_index, int use_dirax)
}
if ( use_dirax ) {
+
+ UnitCell *new_cell;
+
run_dirax(image, no_index);
+
+ new_cell = match_cell(image->indexed_cell,
+ image->molecule->cell);
+
+ if ( new_cell != NULL ) image->indexed_cell = new_cell;
+
return;
}
}