aboutsummaryrefslogtreecommitdiff
path: root/src/cell.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-17 14:28:01 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:26 +0100
commita25bd0da6fc3b5e5a5c121690bd35631ad1e3b2b (patch)
treedf17ea24e92c1eb6d757a08309c1c57094403572 /src/cell.c
parentc65ac2bd1d3ba1b69349ba52d0e2a72ee2c2e25d (diff)
Fix --cell-reduction=compare
It must be allowed to add zero multiples of an axis length, otherwise the best it can do is a*+b*+c*, or a*+b*-c* etc.
Diffstat (limited to 'src/cell.c')
-rw-r--r--src/cell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell.c b/src/cell.c
index a2507319..25d9e40d 100644
--- a/src/cell.c
+++ b/src/cell.c
@@ -688,7 +688,7 @@ UnitCell *match_cell(UnitCell *cell, UnitCell *template, int verbose,
if ( reduce ) {
ilow = -2; ihigh = 4;
} else {
- ilow = 1; ihigh = 1;
+ ilow = 0; ihigh = 1;
}
/* Negative values mean 1/n, positive means n, zero means zero */