diff options
author | Thomas White <taw@physics.org> | 2018-10-26 16:04:55 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-03-11 16:49:36 +0100 |
commit | b7d39a5087e2cb4bfaf4bf98b660625f66df8d41 (patch) | |
tree | f19261e97db8f3405e490f016a7b610792187be0 /src | |
parent | 481c13eac53cce18272ff3ef3e4994170c7d2e62 (diff) |
cell_tool: Fix length tolerance units
Diffstat (limited to 'src')
-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 ee82f332..5aaa68a6 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -90,7 +90,7 @@ static int comparecells(UnitCell *cell, const char *comparecell, cell_print(cell2); STATUS("Comparing cells up to %ix each lattice length.\n", maxorder); - STATUS("Reciprocal axis length tolerance %f %%\n", ltl*100.0); + STATUS("Reciprocal axis length tolerance %f %%\n", ltl); STATUS("Reciprocal angle tolerance %f degrees\n", rad2deg(atl)); STATUS("This will take about 30 seconds. Please wait...\n"); @@ -387,7 +387,7 @@ int main(int argc, char *argv[]) char *cell_file = NULL; UnitCell *cell; char *toler = NULL; - float ltl = 5.0/100.0; + float ltl = 5.0; /* in percent */ float atl = deg2rad(1.5); char *sym_str = NULL; SymOpList *sym = NULL; @@ -495,7 +495,7 @@ int main(int argc, char *argv[]) ERROR("Invalid parameters for --tolerance\n"); return 1; } - ltl /= 100.0; /* Percent to fraction */ + /* ltl stays in percent */ atl = deg2rad(atl); free(toler); } |