aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-11-18 14:27:21 +0100
committerThomas White <taw@physics.org>2022-11-18 14:27:21 +0100
commitceda8121dd6dfc4033bc73d4ca603ab2c7cbe111 (patch)
tree4d7d9f51c9cde30a3c29722dc8674cb5f8c8450d
parentf48859aaf9f1d3d98677e5ff0ff508e72db889b2 (diff)
CrystFELIndexingOpts: Set -nocell and -nolatt where appropriate
Without these, the algorithms assume defaults which don't necessarily match what the user intended. Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/70
-rw-r--r--src/crystfelindexingopts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crystfelindexingopts.c b/src/crystfelindexingopts.c
index b5fd1acb..d1cf515f 100644
--- a/src/crystfelindexingopts.c
+++ b/src/crystfelindexingopts.c
@@ -876,9 +876,13 @@ char *crystfel_indexing_opts_get_indexing_method_string(CrystFELIndexingOpts *op
strcat(indm_str, name);
if ( prior_cell ) {
strcat(indm_str, "-cell");
+ } else {
+ strcat(indm_str, "-nocell");
}
if ( prior_latt ) {
strcat(indm_str, "-latt");
+ } else {
+ strcat(indm_str, "-nolatt");
}
}