aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-05-03 16:38:18 +0200
committerThomas White <taw@physics.org>2016-07-01 10:17:38 +0200
commit92bf4069d916bd7bd6345d4b2b4ff585c7d28744 (patch)
tree78912393412effa9061e93d6bfe835b456594e68 /src/pattern_sim.c
parent6309221fcc3c573cdb20a7c953b8964fb85f78c5 (diff)
Remove slab-relative coordinates from partial_sim and pattern_sim
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 262e3976..d111091b 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -3,11 +3,11 @@
*
* Simulate diffraction patterns from small crystals
*
- * Copyright © 2012-2015 Deutsches Elektronen-Synchrotron DESY,
+ * Copyright © 2012-2016 Deutsches Elektronen-Synchrotron DESY,
* a research centre of the Helmholtz Association.
*
* Authors:
- * 2009-2015 Thomas White <taw@physics.org>
+ * 2009-2016 Thomas White <taw@physics.org>
* 2013-2014 Chun Hong Yoon <chun.hong.yoon@desy.de>
* 2014 Valerio Mariani
* 2013 Alexandra Tolstikova
@@ -655,12 +655,7 @@ int main(int argc, char *argv[])
}
- /* Define image parameters */
- image.width = image.det->max_fs + 1;
- image.height = image.det->max_ss + 1;
-
- double wl = ph_en_to_lambda(eV_to_J(photon_energy));
- image.lambda = wl;
+ image.lambda = ph_en_to_lambda(eV_to_J(photon_energy));
image.bw = bandwidth;
image.nsamples = nsamples;
@@ -693,8 +688,6 @@ int main(int argc, char *argv[])
gsl_rng_set(rng, seed);
}
- powder.width = image.width;
- powder.height = image.height;
powder.det = image.det;
powder.beam = NULL;
powder.lambda = 0.0;