diff options
author | Thomas White <taw@physics.org> | 2019-02-28 10:53:11 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-11 16:49:37 +0100 |
commit | 2dad9da2661389cf5c34a49e933dab20bd6d943c (patch) | |
tree | 127a0a0e9d6a32adff3a52f51011ae20be71dee5 /src/cell_tool.c | |
parent | b8c79e07d8d84990122d56a053d822232590a9d5 (diff) |
Fix tolerances (again)
Diffstat (limited to 'src/cell_tool.c')
-rw-r--r-- | src/cell_tool.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cell_tool.c b/src/cell_tool.c index b48b538e..03c58f5e 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -400,8 +400,8 @@ int main(int argc, char *argv[]) char *cell_file = NULL; UnitCell *cell; char *toler = NULL; - float ltl = 5.0; /* in percent */ - float atl = deg2rad(1.5); + float ltl = 0.05; /* fraction */ + float atl = deg2rad(1.5); /* radians */ char *sym_str = NULL; SymOpList *sym = NULL; int mode = CT_NOTHING; @@ -518,7 +518,7 @@ int main(int argc, char *argv[]) ERROR("Invalid parameters for --tolerance\n"); return 1; } - /* ltl stays in percent */ + ltl /= 100.0; /* percent to fraction */ atl = deg2rad(atl); free(toler); } |