aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parameters-lcls.tmp3
-rw-r--r--src/pattern_sim.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/parameters-lcls.tmp b/src/parameters-lcls.tmp
index 7ae2af48..1fb35065 100644
--- a/src/parameters-lcls.tmp
+++ b/src/parameters-lcls.tmp
@@ -12,3 +12,6 @@
/* Radius of X-ray beam */
#define BEAM_RADIUS (3.0e-6 / 2.0)
+
+/* Photon energy in eV */
+#define PHOTON_ENERGY (8000.0)
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;