From e0a717ebe6981cd14f268056bdcdc7ba53dfe029 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 14 Nov 2014 15:47:33 +0100 Subject: Allow geometry files to not contain photon_energy --- src/partial_sim.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/partial_sim.c') diff --git a/src/partial_sim.c b/src/partial_sim.c index 504abf52..d2229f39 100644 --- a/src/partial_sim.c +++ b/src/partial_sim.c @@ -697,6 +697,12 @@ int main(int argc, char *argv[]) ERROR("Failed to read geometry from '%s'\n", geomfile); return 1; } + if ( (beam.photon_energy > 0.0) && (beam.photon_energy_from == NULL) ) { + ERROR("WARNING: An explicit photon energy was found in the " + "geometry file. It will be ignored!\n"); + ERROR("The value given on the command line " + "(with --photon-energy) will be used instead.\n"); + } if ( sym_str == NULL ) sym_str = strdup("1"); sym = get_pointgroup(sym_str); -- cgit v1.2.3