diff options
author | Thomas White <taw@bitwiz.org.uk> | 2010-09-20 15:32:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:59 +0100 |
commit | 90c2969fc166de273b1c6352ddb40fd591e41414 (patch) | |
tree | b89b0be535c7839bc74eee9b3127a0345e80625f /src | |
parent | 673ca84fce705c8ecfe07bbed3ae23986d9ceb4f (diff) |
facetron: Take symmetry on command line
Diffstat (limited to 'src')
-rw-r--r-- | src/facetron.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/facetron.c b/src/facetron.c index d2c0edd7..adec4828 100644 --- a/src/facetron.c +++ b/src/facetron.c @@ -366,12 +366,14 @@ int main(int argc, char *argv[]) {"prefix", 1, NULL, 'x'}, {"basename", 0, &config_basename, 1}, {"no-check-prefix", 0, &config_checkprefix, 0}, + {"symmetry", 1, NULL, 'y'}, {0, 0, NULL, 0} }; /* Short options */ - while ((c = getopt_long(argc, argv, "hi:g:x:j:", - longopts, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "hi:g:x:j:y:", + longopts, NULL)) != -1) + { switch (c) { case 'h' : @@ -394,6 +396,10 @@ int main(int argc, char *argv[]) nthreads = atoi(optarg); break; + case 'y' : + sym = strdup(optarg); + break; + case 0 : break; @@ -432,8 +438,6 @@ int main(int argc, char *argv[]) } free(geomfile); - sym = strdup("6/mmm"); /* FIXME: Should be on command line */ - rewind(fh); optimise_all(nthreads, det, sym, fh, config_basename, prefix); |