From 4444903848bf30d50832d20ef84fe7b88f74797d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Sep 2017 16:28:01 +0200 Subject: indexamajig: Hide indexing setup messages if we are not indexing anything --- src/indexamajig.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/indexamajig.c b/src/indexamajig.c index ef6dbd42..bdb2af96 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -802,8 +802,6 @@ int main(int argc, char *argv[]) return 1; } free(cellfile); - STATUS("This is what I understood your unit cell to be:\n"); - cell_print(iargs.cell); } else { STATUS("No unit cell given.\n"); iargs.cell = NULL; @@ -869,12 +867,26 @@ int main(int argc, char *argv[]) " to index anything.\n" "If that isn't what you wanted, re-run with" " --indexing=.\n"); + if ( iargs.cell != NULL ) { + STATUS("Ignoring your unit cell.\n"); + } + iargs.ipriv = NULL; + + } else if ( strcmp(indm_str, "none") == 0 ) { + + STATUS("Indexing/integration disabled.\n"); + if ( iargs.cell != NULL ) { + STATUS("Ignoring your unit cell.\n"); + } iargs.ipriv = NULL; } else { IndexingFlags flags = 0; + STATUS("This is what I understood your unit cell to be:\n"); + cell_print(iargs.cell); + if ( if_nocomb ) { flags |= INDEXING_CHECK_CELL_AXES; } else { -- cgit v1.2.3