aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandra Tolstikova <alexandra.tolstikova@desy.de>2017-11-22 16:58:10 +0100
committerThomas White <taw@physics.org>2018-09-10 15:01:29 +0200
commit5a50a82a9ee0936d67901f43e68ca37455a7814b (patch)
tree81df87a96485d981257dc9161cd2010e7674f903 /tests
parent17aec9c77e9b75510e43b0fb073df75f66849761 (diff)
Change image.spectrum to image.spectrum0 to use a different structure for spectrum.
Diffstat (limited to 'tests')
-rw-r--r--tests/gpu_sim_check.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/gpu_sim_check.c b/tests/gpu_sim_check.c
index 8c666775..aee7a068 100644
--- a/tests/gpu_sim_check.c
+++ b/tests/gpu_sim_check.c
@@ -157,8 +157,8 @@ int main(int argc, char *argv[])
gpu_image.det = det;
cpu_image.beam = NULL;
gpu_image.beam = NULL;
- cpu_image.spectrum = NULL;
- gpu_image.spectrum = NULL;
+ cpu_image.spectrum0 = NULL;
+ gpu_image.spectrum0 = NULL;
cpu_image.lambda = ph_en_to_lambda(eV_to_J(6000));
gpu_image.lambda = ph_en_to_lambda(eV_to_J(6000));
@@ -167,8 +167,8 @@ int main(int argc, char *argv[])
cpu_image.nsamples = 10;
gpu_image.nsamples = 10;
- cpu_image.spectrum = generate_tophat(&cpu_image);
- gpu_image.spectrum = generate_tophat(&gpu_image);
+ cpu_image.spectrum0 = generate_tophat(&cpu_image);
+ gpu_image.spectrum0 = generate_tophat(&gpu_image);
start = get_hires_seconds();
if ( get_diffraction_gpu(gctx, &gpu_image, 8, 8, 8, cell, 0, 0) ) {