diff options
author | Thomas White <taw@physics.org> | 2021-07-22 13:23:15 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-22 13:23:15 +0200 |
commit | 9000b116c8e7e98824fda428eb24467afaa33306 (patch) | |
tree | 30799b5ed903e86718119fa24a026ee8226d7e9b /src | |
parent | 13d65b9785d1557e29f5f06871d01bad8e76e44c (diff) |
cell_explorer: Fix bug in cell enforcement
Diffstat (limited to 'src')
-rw-r--r-- | src/cell_explorer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cell_explorer.c b/src/cell_explorer.c index 1f67ec56..84e26f82 100644 --- a/src/cell_explorer.c +++ b/src/cell_explorer.c @@ -1389,7 +1389,7 @@ static UnitCell *enforce_cell(UnitCell *orig, const char *t) alpha = av; beta = av; gamma = av; } - if ( (t[0] == 'c') && (t[0] == 'r') ) { + if ( (t[0] == 'c') || (t[0] == 'r') ) { double av = (a+b+c)/3.0; a = av; b = av; c = av; } |