From a989242a824d9852caf1d0f3bc99d3a45ee21a88 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 18 Nov 2014 14:08:54 +0100 Subject: pattern_sim: Save photon energy at specified location --- src/pattern_sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3