aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-11-18 14:08:54 +0100
committerThomas White <taw@physics.org>2014-11-18 14:08:54 +0100
commita989242a824d9852caf1d0f3bc99d3a45ee21a88 (patch)
tree0474e9dc3f20492ff5a6bff49a28e1b340aa8d1a /src/pattern_sim.c
parentbdfb557d79852d65a6596f13a64fc75f3b34539e (diff)
pattern_sim: Save photon energy at specified location
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 4085d840..908f61dc 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -540,7 +540,8 @@ int main(int argc, char *argv[])
ERROR("You need to specify a geometry file with --geometry\n");
return 1;
}
- image.det = get_detector_geometry(geometry, &beam);
+ image.beam = &beam;
+ image.det = get_detector_geometry(geometry, image.beam);
if ( image.det == NULL ) {
ERROR("Failed to read detector geometry from '%s'\n", geometry);
return 1;