Basic changes for time resolution.

Input from json still suboptimal.
This commit is contained in:
2024-05-14 09:23:52 +02:00
parent cac5e6ff5d
commit 77fa8d175a
12 changed files with 84 additions and 36 deletions
+5 -2
View File
@@ -35,7 +35,9 @@ class Injector {
std::shared_ptr<EventPositionDistribution> position_distribution,
std::shared_ptr<DriftVelocity> mother_drift_velocity);
std::vector<particle::Particle> rollNewParticles(std::mt19937* engine);
std::vector<particle::Particle> rollNewParticles(std::mt19937* engine,
const double current_time,
const int time_resolution_events);
double timePassed() const;
private:
@@ -48,7 +50,8 @@ class Injector {
std::mt19937* engine,
const Coordinate& position,
std::shared_ptr<species::TrackedSpecie> created_specie,
std::shared_ptr<VelocityDistribution> creation_velocity_distribution);
std::shared_ptr<VelocityDistribution> creation_velocity_distribution,
const double time_birth);
};
#endif /* INJECTOR_H */