aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-09-21 16:28:01 +0200
committerThomas White <taw@physics.org>2017-09-21 16:28:01 +0200
commit4444903848bf30d50832d20ef84fe7b88f74797d (patch)
treeec97f678c2540c499f9d3e2ac5b9b24af1df2aa9 /src/indexamajig.c
parent6239330e483a47c3579b89c407ac02346f388e27 (diff)
indexamajig: Hide indexing setup messages if we are not indexing anything
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c16
1 files 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=<methods>.\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 {