Commit 79c93a9c authored by Thomas White's avatar Thomas White Committed by Thomas White
Browse files

indexamajig: Fix cell loading logic

parent e81b2160
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment