aboutsummaryrefslogtreecommitdiff
path: root/src/symmetry.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-07-21 16:34:24 -0400
committerThomas White <taw@physics.org>2012-02-22 15:26:54 +0100
commit8431193a77077f6bb0c136b902df4b0604deda88 (patch)
treed7acff0ea63718ac39ac12705a56d10ff23c902d /src/symmetry.c
parent6a6ca3f4ff5ea8ccc22edca441a67c6598f9c69b (diff)
process_hkl: Don't resolve twins/inversion unless requested
Diffstat (limited to 'src/symmetry.c')
-rw-r--r--src/symmetry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/symmetry.c b/src/symmetry.c
index 54b7f5cc..4178855d 100644
--- a/src/symmetry.c
+++ b/src/symmetry.c
@@ -34,7 +34,9 @@ static int check_cond(signed int h, signed int k, signed int l, const char *sym)
if ( strcmp(sym, "1") == 0 )
return ( 1 );
if ( strcmp(sym, "-1") == 0 )
- return ( 1 );
+ return ( (l>0)
+ || ( (l==0) && (k>0) )
+ || ( (l==0) && (k==0) && (h>=0) ) );
if ( strcmp(sym, "6") == 0 )
return ( ((h>0) && (k>=0)) || ((h==0) && (k==0)) );
if ( strcmp(sym, "6/m") == 0 )