aboutsummaryrefslogtreecommitdiff
path: root/src/symmetry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-25 15:22:46 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:34 +0100
commit49f7c2c968c0b94a2d0665173be9820c4079046a (patch)
treefd78126e5814b1d3eb32db42d1cf2203111b2626 /src/symmetry.c
parent408dd3437a941179459366b9cadbb901e9fbaa81 (diff)
Fix get_asymm()
Diffstat (limited to 'src/symmetry.c')
-rw-r--r--src/symmetry.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/symmetry.c b/src/symmetry.c
index 10c41ba7..b727a921 100644
--- a/src/symmetry.c
+++ b/src/symmetry.c
@@ -974,18 +974,18 @@ void get_asymm(const SymOpList *ops,
get_equiv(ops, NULL, p, h, k, l, hp, kp, lp);
- if ( h > best_h ) {
- best_h = h; best_k = k; best_l = l;
+ if ( *hp > best_h ) {
+ best_h = *hp; best_k = *kp; best_l = *lp;
continue;
}
- if ( k > best_k ) {
- best_h = h; best_k = k; best_l = l;
+ if ( *kp > best_k ) {
+ best_h = *hp; best_k = *kp; best_l = *lp;
continue;
}
- if ( l > best_l ) {
- best_h = h; best_k = k; best_l = l;
+ if ( *lp > best_l ) {
+ best_h = *hp; best_k = *kp; best_l = *lp;
continue;
}