diff options
author | Thomas White <taw@physics.org> | 2010-02-04 19:18:16 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-02-04 19:18:16 +0100 |
commit | 96046b5dbb09328b4dac40f363cd8157cf32b4fa (patch) | |
tree | 07f36be3f6437888c972002580a9ebcfa042b375 /src/index.c | |
parent | 187ba88a5fc87f65f19fcaa80a002d9ca9e43bbb (diff) |
Add --no-match option to skip the unit cell matching procedure
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/index.c b/src/index.c index 4bc74b82..27d75554 100644 --- a/src/index.c +++ b/src/index.c @@ -102,7 +102,7 @@ static void write_drx(struct image *image) } -void index_pattern(struct image *image, IndexingMethod indm) +void index_pattern(struct image *image, IndexingMethod indm, int no_match) { int i; UnitCell *new_cell = NULL; @@ -148,8 +148,10 @@ void index_pattern(struct image *image, IndexingMethod indm) return; } - new_cell = match_cell(image->indexed_cell, - image->molecule->cell); - free(image->indexed_cell); - image->indexed_cell = new_cell; + if ( !no_match ) { + new_cell = match_cell(image->indexed_cell, + image->molecule->cell); + free(image->indexed_cell); + image->indexed_cell = new_cell; + } } |