aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-15 09:36:24 +0100
committerThomas White <taw@physics.org>2010-01-15 09:36:24 +0100
commit8a1980e7052d6c431b638c2a3380a7efbfe23dca (patch)
tree159796dd87fe50b2f849cb4599a7b02faa7c1d2a /src/pattern_sim.c
parent4400739e74b8f4f37c1bdc64ed16022103a2089b (diff)
File handling fixes
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 9a00b5d7..255ba736 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -256,6 +256,10 @@ int main(int argc, char *argv[])
image.hdr = NULL;
get_diffraction(&image, na, nb, nc);
+ if ( image.molecule == NULL ) {
+ ERROR("Couldn't open molecule.pdb\n");
+ return 1;
+ }
record_image(&image, !config_nowater, !config_nonoise,
!config_nobloom);