Commit df9457eb authored by Thomas White's avatar Thomas White
Browse files

Missed this one

parent 8e9f89cb
...@@ -222,7 +222,8 @@ int main(int argc, char *argv[]) ...@@ -222,7 +222,8 @@ int main(int argc, char *argv[])
int random_size = 0; int random_size = 0;
double min_size = 0.0; double min_size = 0.0;
double max_size = 0.0; double max_size = 0.0;
char *sym = NULL; char *sym_str = NULL;
SymOpList *sym;
/* Long options */ /* Long options */
const struct option longopts[] = { const struct option longopts[] = {
...@@ -298,7 +299,7 @@ int main(int argc, char *argv[]) ...@@ -298,7 +299,7 @@ int main(int argc, char *argv[])
break; break;
case 'y' : case 'y' :
sym = strdup(optarg); sym_str = strdup(optarg);
break; break;
case 2 : case 2 :
...@@ -358,7 +359,9 @@ int main(int argc, char *argv[]) ...@@ -358,7 +359,9 @@ int main(int argc, char *argv[])
} }
} }
if ( sym == NULL ) sym = strdup("1"); if ( sym_str == NULL ) sym_str = strdup("1");
sym = get_pointgroup(sym_str);
/* sym_str is used below */
if ( config_simdetails ) { if ( config_simdetails ) {
show_details(); show_details();
...@@ -427,7 +430,7 @@ int main(int argc, char *argv[]) ...@@ -427,7 +430,7 @@ int main(int argc, char *argv[])
/* Check that the intensities have the correct symmetry */ /* Check that the intensities have the correct symmetry */
if ( check_list_symmetry(reflections, sym) ) { if ( check_list_symmetry(reflections, sym) ) {
ERROR("The input reflection list does not appear to" ERROR("The input reflection list does not appear to"
" have symmetry %s\n", sym); " have symmetry %s\n", symmetry_name(sym));
return 1; return 1;
} }
...@@ -527,7 +530,7 @@ int main(int argc, char *argv[]) ...@@ -527,7 +530,7 @@ int main(int argc, char *argv[])
if ( config_gpu ) { if ( config_gpu ) {
if ( gctx == NULL ) { if ( gctx == NULL ) {
gctx = setup_gpu(config_nosfac, gctx = setup_gpu(config_nosfac,
intensities, flags, sym, intensities, flags, sym_str,
gpu_dev); gpu_dev);
} }
get_diffraction_gpu(gctx, &image, na, nb, nc, cell); get_diffraction_gpu(gctx, &image, na, nb, nc, cell);
...@@ -604,7 +607,8 @@ skip: ...@@ -604,7 +607,8 @@ skip:
free(intensities); free(intensities);
free(outfile); free(outfile);
free(filename); free(filename);
free(sym); free(sym_str);
free_symoplist(sym);
return 0; return 0;
} }
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