diff options
Diffstat (limited to 'src/gui_index.c')
-rw-r--r-- | src/gui_index.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index fab3880f..42df35e7 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -824,10 +824,12 @@ char **indexamajig_command_line(const char *geom_filename, add_arg(args, n_args++, "-p"); add_arg(args, n_args++, indexing_params->cell_file); } + /* indexing_params->tols is in frac (not %) and radians. + * Indexamajig command line wants percent and degrees */ snprintf(tols, 2048, "--tolerance=%f,%f,%f,%f,%f,%f", - rad2deg(indexing_params->tols[0]), - rad2deg(indexing_params->tols[1]), - rad2deg(indexing_params->tols[2]), + indexing_params->tols[0]*100.0, + indexing_params->tols[1]*100.0, + indexing_params->tols[2]*100.0, rad2deg(indexing_params->tols[3]), rad2deg(indexing_params->tols[4]), rad2deg(indexing_params->tols[5])); |