aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-22 17:00:07 +0100
committerThomas White <taw@physics.org>2010-01-22 17:00:07 +0100
commit59d475c1788a8153dd9b936eadabafc1bfee8924 (patch)
tree43412bee0f67575c314aa3bb04ec2612270e6928
parent271e86a0739ab4cc4085fdf245999690a87cd541 (diff)
Zero things out earlier
-rw-r--r--src/indexamajig.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 3142b748..53c947d1 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -169,6 +169,13 @@ int main(int argc, char *argv[])
if ( config_nearbragg || config_simulate ) {
+ /* Simulate a diffraction pattern */
+ image.sfacs = NULL;
+ image.data = NULL;
+ image.qvecs = NULL;
+ image.twotheta = NULL;
+ image.hdr = NULL;
+
/* View head-on (unit cell is tilted) */
image.orientation.w = 1.0;
image.orientation.x = 0.0;
@@ -185,13 +192,6 @@ int main(int argc, char *argv[])
if ( config_simulate ) {
- /* Simulate a diffraction pattern */
- image.sfacs = NULL;
- image.data = NULL;
- image.twotheta = NULL;
- image.hdr = NULL;
- image.molecule = NULL;
-
get_diffraction(&image, 8, 8, 8);
if ( image.molecule == NULL ) {
ERROR("Couldn't open molecule.pdb\n");