Commit 90c2969f authored by Thomas White's avatar Thomas White Committed by Thomas White
Browse files

facetron: Take symmetry on command line

parent 673ca84f
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment