aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-14 17:59:45 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:15 +0100
commit79c93a9cfe7883e454f86a0615888bbec881f297 (patch)
tree99455a368c64e08104e0cef4077ef8444ed666e0 /src
parente81b216071cce94906544552476b101378f616f1 (diff)
indexamajig: Fix cell loading logic
Diffstat (limited to 'src')
-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;