removed infrastructure only needed for the old
density calculation scheme
This commit is contained in:
@@ -28,7 +28,6 @@ Particle::Particle(std::shared_ptr<species::TrackedSpecie> specie,
|
||||
velocity_(velocity, position),
|
||||
id_(this->last_id_),
|
||||
time_alive_s_(time_birth),
|
||||
time_in_bin_s_(0.),
|
||||
interaction_counter_(0),
|
||||
weight_(weight) {
|
||||
last_id_++;
|
||||
@@ -101,18 +100,6 @@ double Particle::timeAlive() const {
|
||||
return time_alive_s_;
|
||||
}
|
||||
|
||||
void Particle::increaseTimeInBin(double time_s) {
|
||||
time_in_bin_s_ += time_s;
|
||||
}
|
||||
|
||||
void Particle::resetTimeInBin() {
|
||||
time_in_bin_s_ = 0.;
|
||||
}
|
||||
|
||||
double Particle::timeInBin() const {
|
||||
return time_in_bin_s_*weight_;
|
||||
}
|
||||
|
||||
long int Particle::ID() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user