Basic changes for time resolution.
Input from json still suboptimal.
This commit is contained in:
@@ -20,12 +20,13 @@ Particle::Particle(std::shared_ptr<species::TrackedSpecie> specie,
|
||||
|
||||
Particle::Particle(std::shared_ptr<species::TrackedSpecie> specie,
|
||||
const Coordinate& position,
|
||||
const Vector& velocity)
|
||||
const Vector& velocity,
|
||||
const double time_birth)
|
||||
: specie_(specie),
|
||||
position_(position),
|
||||
velocity_(velocity, position),
|
||||
id_(this->last_id_),
|
||||
time_alive_s_(0.),
|
||||
time_alive_s_(time_birth),
|
||||
time_in_bin_s_(0.),
|
||||
interaction_counter_(0) {
|
||||
last_id_++;
|
||||
|
||||
Reference in New Issue
Block a user