From ceda8121dd6dfc4033bc73d4ca603ab2c7cbe111 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 18 Nov 2022 14:27:21 +0100 Subject: 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 --- src/crystfelindexingopts.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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"); } } -- cgit v1.2.3