diff options
author | Stan Seibert <stan@mtrr.org> | 2011-12-29 13:13:29 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:38 -0700 |
commit | a283b2ba978cd5e13814d9e811935ec93d367ee2 (patch) | |
tree | 073b30d2ed3666dfaabe03d294740c4f3d92972d | |
parent | b04f613dbf7f3535896cfcb237e569f7027c74b8 (diff) | |
download | chroma-a283b2ba978cd5e13814d9e811935ec93d367ee2.tar.gz chroma-a283b2ba978cd5e13814d9e811935ec93d367ee2.tar.bz2 chroma-a283b2ba978cd5e13814d9e811935ec93d367ee2.zip |
Fix bug in stepping through photons during multi-DAQ simulation.
-rw-r--r-- | chroma/gpu/daq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/gpu/daq.py b/chroma/gpu/daq.py index 44fb330..b526eeb 100644 --- a/chroma/gpu/daq.py +++ b/chroma/gpu/daq.py @@ -79,7 +79,7 @@ class GPUDaq(object): for first_photon, photons_this_round, blocks in \ chunk_iterator(nphotons, 1, max_blocks): self.gpu_funcs.run_daq_many(rng_states, np.uint32(0x1 << 2), - np.int32(start_photon), np.int32(photons_this_round), gpuphotons.t, + np.int32(start_photon+first_photon), np.int32(photons_this_round), gpuphotons.t, gpuphotons.flags, gpuphotons.last_hit_triangles, gpuphotons.weights, self.solid_id_map_gpu, self.detector_gpu, |