diff options
author | Thomas White <taw@physics.org> | 2017-07-24 11:41:58 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-07-24 11:41:58 +0200 |
commit | 27181a7b489f927c7bc7d485d4d87299d040a571 (patch) | |
tree | cdeaabe6d96f4b6b8f0b0e35b8b4b85ec8b1cd25 /src | |
parent | 86d1ad63431c33019f1c6214588eddc83be7be70 (diff) |
TakeTwo options again
Diffstat (limited to 'src')
-rw-r--r-- | src/indexamajig.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 0ab50043..a79234d3 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -582,6 +582,7 @@ int main(int argc, char *argv[]) ERROR("Invalid value for --taketwo-len-tolerance\n"); return 1; } + /* Convert to m^-1 */ iargs.taketwo_opts.len_tol *= 1e10; break; @@ -591,16 +592,17 @@ int main(int argc, char *argv[]) ERROR("Invalid value for --taketwo-angle-tolerance\n"); return 1; } + /* Convert to radians */ iargs.taketwo_opts.angle_tol = deg2rad(iargs.taketwo_opts.angle_tol); break; - case 35: if ( sscanf(optarg, "%lf", &iargs.taketwo_opts.trace_tol) != 1 ) { ERROR("Invalid value for --taketwo-trace-tolerance\n"); return 1; } + /* Convert to radians */ iargs.taketwo_opts.trace_tol = deg2rad(iargs.taketwo_opts.trace_tol); break; |