diff options
author | Thomas White <taw@physics.org> | 2016-02-09 15:12:19 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-02-09 15:12:19 +0100 |
commit | 5e35a6e9f82829ed77706a7cc4f66118807c941f (patch) | |
tree | b1b048c60b0873ecd65855f1be1e9851030da702 /src/pattern_sim.c | |
parent | 9b4f2c82012ca588086d4e0851fdcf63b19fc149 (diff) |
pattern_sim: Initialise stuff for powder HDF5
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index f724057e..262e3976 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -696,6 +696,9 @@ int main(int argc, char *argv[]) powder.width = image.width; powder.height = image.height; powder.det = image.det; + powder.beam = NULL; + powder.lambda = 0.0; + powder.spectrum = NULL; powder.dp = malloc(image.det->n_panels*sizeof(float *)); if ( powder.dp == NULL ) { ERROR("Failed to allocate powder data\n"); |