diff options
author | Thomas White <taw@physics.org> | 2019-03-13 15:53:53 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-13 15:53:53 +0100 |
commit | 4d6b5ac83e0bd4929661dfb2c5580da7a2aa4a63 (patch) | |
tree | 7bb14c52efb7d3f55b5de16767d91cbfa52a86da | |
parent | fc5e8a45f99c7927af26bccf341144ef556673da (diff) |
cell_tool: Accept unconventional cell
-rw-r--r-- | src/cell_tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cell_tool.c b/src/cell_tool.c index 14faac3b..5e11eddb 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -82,7 +82,7 @@ static int comparecells(UnitCell *cell, const char *comparecell, ERROR("Failed to load unit cell from '%s'\n", comparecell); return 1; } - if ( validate_cell(cell2) ) { + if ( validate_cell(cell2) > 1 ) { ERROR("Comparison cell is invalid.\n"); return 1; } @@ -532,7 +532,7 @@ int main(int argc, char *argv[]) STATUS("------------------> The input unit cell:\n"); cell_print(cell); - if ( validate_cell(cell) ) { + if ( validate_cell(cell) > 1 ) { ERROR("Cell is invalid.\n"); return 1; } |