blond-admin / BLonD

BLonD (Beam Longitudinal Dynamics)
http://blond.web.cern.ch
GNU General Public License v3.0
19 stars 23 forks source link

bigaussian initializer: Introduced separate random generators for dt and dE. #207

Closed fschuderer closed 2 years ago

fschuderer commented 2 years ago

Commit fixes #206. Before, arrays beam.dt and beam.dE have been initialized with the same random number stream because only one seed was set and that only once. This caused the problem described in #206. Now, separate random generators are used for beam.dt and beam.dE. When initializing N particles, particles 0-(N-1) will now have the same dt and dE values as particles 0-(N-1) when initializing (N+1) particles.