aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-03 18:02:07 +0200
committerThomas White <taw@physics.org>2010-06-03 18:02:07 +0200
commit44b44af2d3a9a0c4a72f7f88903587f10d69a909 (patch)
treeba1f02ba4de8418e28fb71c150e3c67caa0b5c17 /src/pattern_sim.c
parentad4746363bffc56d379e421fec5f1733476faef5 (diff)
Move photon energy to parameters header
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 6a8a9299..130b6681 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -31,6 +31,7 @@
#include "peaks.h"
#include "sfac.h"
#include "reflections.h"
+#include "parameters-lcls.tmp"
static void show_help(const char *s)
@@ -316,7 +317,7 @@ int main(int argc, char *argv[])
/* Define image parameters */
image.width = 1024;
image.height = 1024;
- image.lambda = ph_en_to_lambda(eV_to_J(1790.0)); /* Wavelength */
+ image.lambda = ph_en_to_lambda(eV_to_J(PHOTON_ENERGY)); /* Wavelength */
cell = load_cell_from_pdb(filename);
image.filename = NULL;