aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 9b8f66c0..4d5f1fe5 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -771,6 +771,7 @@ int main(int argc, char *argv[])
"If that isn't what you wanted, re-run with"
" --indexing=<method>.\n");
indm = NULL;
+ indexer_needs_cell = 0;
} else {
indm = build_indexer_list(indm_str, &indexer_needs_cell);
if ( indm == NULL ) {
@@ -800,6 +801,9 @@ int main(int argc, char *argv[])
}
free(scellr); /* free(NULL) is OK. */
+ /* No indexing -> no reduction */
+ if ( indm == NULL ) reduction_needs_cell = 0;
+
if ( geometry == NULL ) {
ERROR("You need to specify a geometry file with --geometry\n");
return 1;