From 117779c5fd9321b4a262f144798f081321a65a38 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 30 Apr 2019 14:43:06 +0200 Subject: Avoid duplication of beam and detector parameters for pinkIndexer --- src/indexamajig.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/indexamajig.c b/src/indexamajig.c index 9aef3f2e..9fe14c65 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -1048,6 +1048,8 @@ int main(int argc, char *argv[]) "--pinkIndexer-reflection-radius\n"); return 1; } + /* A^-1 to m^-1 */ + iargs.pinkIndexer_opts.reflectionRadius /= 1e10; break; case 0 : @@ -1149,12 +1151,6 @@ int main(int argc, char *argv[]) return 1; } add_geom_beam_stuff_to_field_list(iargs.copyme, iargs.det, iargs.beam); - iargs.pinkIndexer_opts.beamEnergy = iargs.beam->photon_energy; - iargs.pinkIndexer_opts.beamBandwidth = 0.01; - iargs.pinkIndexer_opts.detectorDistance = iargs.det->panels[0].clen; - if(iargs.det->panels[0].clen_from != NULL){ - iargs.pinkIndexer_opts.detectorDistance = 0; - } /* If no peak path from geometry file, use these (but see later) */ if ( iargs.hdf5_peak_path == NULL ) { @@ -1394,7 +1390,7 @@ int main(int argc, char *argv[]) } iargs.ipriv = setup_indexing(indm_str, iargs.cell, iargs.det, - iargs.tols, flags, + iargs.beam, iargs.tols, flags, &iargs.taketwo_opts, &iargs.xgandalf_opts, &iargs.pinkIndexer_opts, -- cgit v1.2.3