aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-10-11 18:16:02 +0200
committerThomas White <taw@physics.org>2012-10-11 18:17:04 +0200
commitc7712c20c3977af8eccf9a7951b9f494e5ba14c4 (patch)
treec9de0e3f4f4f617d7abd0fc06c8749c81d6f4064 /src
parent5e7a690bc72e915e5ea59af549f6d7d2f2822f87 (diff)
indexamajig: Load the unit cell whether it's needed or not
This allows MOSFLM indexing to have access to more information.
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 4b3dcb5d..e8c51422 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -549,18 +549,13 @@ int main(int argc, char *argv[])
}
free(geometry);
- if ( reduction_needs_cell || indexer_needs_cell ) {
- cell = load_cell_from_pdb(pdb);
- if ( cell == NULL ) {
- ERROR("Couldn't read unit cell (from %s)\n", pdb);
- return 1;
- }
- } else {
- STATUS("No cell needed for these choices of indexing"
- " and reduction.\n");
- cell = NULL;
+ cell = load_cell_from_pdb(pdb);
+ if ( cell == NULL ) {
+ ERROR("Couldn't read unit cell (from %s)\n", pdb);
+ return 1;
}
free(pdb);
+ cell_print(cell);
write_stream_header(ofh, argc, argv);