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/diffraction.c | |
parent | 17aec9c77e9b75510e43b0fb073df75f66849761 (diff) |
Change image.spectrum to image.spectrum0 to use a different structure for spectrum.
Diffstat (limited to 'src/diffraction.c')
-rw-r--r-- | src/diffraction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/diffraction.c b/src/diffraction.c index 97750f58..4dc21c59 100644 --- a/src/diffraction.c +++ b/src/diffraction.c @@ -772,13 +772,13 @@ void get_diffraction(struct image *image, int na, int nb, int nc, for ( i=0; i<image->nsamples; i++ ) { printf("%.1f eV, weight = %.5f\n", - ph_lambda_to_eV(1.0/image->spectrum[i].k), - image->spectrum[i].weight); + ph_lambda_to_eV(1.0/image->spectrum0[i].k), + image->spectrum0[i].weight); diffraction_at_k(image, intensities, phases, - flags, cell, m, sym, image->spectrum[i].k, + flags, cell, m, sym, image->spectrum0[i].k, ax, ay, az, bx, by, bz, cx, cy, cz, - lut_a, lut_b, lut_c, image->spectrum[i].weight); + lut_a, lut_b, lut_c, image->spectrum0[i].weight); } |