Decoupled the number of events simulated from
the timestep; Bug with density drawing present (if CPU syncs don't line up with the timestep)
This commit is contained in:
@@ -36,11 +36,13 @@ class Simulation {
|
||||
void finalize();
|
||||
// cpu_syncs only included for debug purposes, e.g. only drawing decay particles
|
||||
// at the 0th timestep
|
||||
void processEvents(int events, int density_events, int cpu_syncs);
|
||||
void processEvents(int events, int density_events, int cpu_syncs,
|
||||
const double beta_particle_weight);
|
||||
void processUntilTermination(particle::Particle& particle);
|
||||
|
||||
private:
|
||||
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random);
|
||||
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random,
|
||||
const double beta_particle_weight);
|
||||
std::vector<particle::Particle>
|
||||
determineInjectedDensityParticles(RandomNumbers* random,
|
||||
const int numberParticlesToDraw, const int current,
|
||||
|
||||
Reference in New Issue
Block a user