diff options
author | Kenneth R. Beyerlein <ken.beyerlein@gmail.com> | 2017-12-07 23:10:51 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-02-08 16:32:08 +0100 |
commit | ec8804fbba5b4e6565fc2d42341ee837e968f89d (patch) | |
tree | cef0c2caf965c199013e08179e10c0a8f59bee68 /src/indexamajig.c | |
parent | af83c9f590349612fa3cff378ae165b33c0fe8f5 (diff) |
Add Felix option felix-max-inter-angle
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 29870957..964e6d04 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -299,6 +299,7 @@ int main(int argc, char *argv[]) iargs.felix_opts.test_fraction = -1.0; iargs.felix_opts.sigma = -1.0; iargs.felix_opts.domega = -1.0; + iargs.felix_opts.max_internal_angle = -1.0; /* Long options */ const struct option longopts[] = { @@ -391,6 +392,7 @@ int main(int argc, char *argv[]) {"felix-sigma", 1, NULL, 43}, {"serial-start", 1, NULL, 44}, {"felix-domega", 1, NULL, 45}, + {"felix-max-inter-angle", 1, NULL, 46}, {0, 0, NULL, 0} }; @@ -709,6 +711,14 @@ int main(int argc, char *argv[]) } break; + case 46: + if ( sscanf(optarg, "%lf", &iargs.felix_opts.max_internal_angle) != 1 ) + { + ERROR("Invalid value for --felix-max-inter-angle\n"); + return 1; + } + break; + case 0 : break; |