diff options
author | Alexandra Tolstikova <alexandra.tolstikova@desy.de> | 2017-11-22 16:58:10 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-09-10 15:01:29 +0200 |
commit | 5a50a82a9ee0936d67901f43e68ca37455a7814b (patch) | |
tree | 81df87a96485d981257dc9161cd2010e7674f903 /src/pattern_sim.c | |
parent | 17aec9c77e9b75510e43b0fb073df75f66849761 (diff) |
Change image.spectrum to image.spectrum0 to use a different structure for spectrum.
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r-- | src/pattern_sim.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index d47c4b60..5b25100e 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -819,7 +819,7 @@ int main(int argc, char *argv[]) powder.det = image.det; powder.beam = NULL; powder.lambda = 0.0; - powder.spectrum = NULL; + powder.spectrum0 = NULL; powder.dp = malloc(image.det->n_panels*sizeof(float *)); if ( powder.dp == NULL ) { ERROR("Failed to allocate powder data\n"); @@ -978,19 +978,19 @@ int main(int argc, char *argv[]) switch ( spectrum_type ) { case SPECTRUM_TOPHAT : - image.spectrum = generate_tophat(&image); + image.spectrum0 = generate_tophat(&image); break; case SPECTRUM_SASE : - image.spectrum = generate_SASE(&image, rng); + image.spectrum0 = generate_SASE(&image, rng); break; case SPECTRUM_TWOCOLOUR : - image.spectrum = generate_twocolour(&image); + image.spectrum0 = generate_twocolour(&image); break; case SPECTRUM_FROMFILE : - image.spectrum = generate_spectrum_fromfile(&image, + image.spectrum0 = generate_spectrum_fromfile(&image, spectrum_fn); break; |