Fixed to state that drawing from density works.

Some debugging elements not removed.
This commit is contained in:
2024-08-12 14:20:45 +02:00
parent b57f6ff201
commit 9dda12b60a
13 changed files with 100 additions and 31 deletions
+4 -2
View File
@@ -34,14 +34,16 @@ class Simulation {
void init(Parameter& parameter);
void start();
void finalize();
void processEvents(int events, int density_events);
// 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 processUntilTermination(particle::Particle& particle);
private:
std::vector<particle::Particle> determineInjectedParticles(RandomNumbers* random);
std::vector<particle::Particle>
determineInjectedDensityParticles(RandomNumbers* random,
const int numberParticlesToDraw);
const int numberParticlesToDraw, const int current);
double meanFreePath(particle::Particle& particle, RandomNumbers* random);