Rename other 'last' members in Particle

This commit is contained in:
Paul Romano 2019-03-01 15:52:25 -06:00
parent 368f89697d
commit cd0ca81914
12 changed files with 141 additions and 137 deletions

View file

@ -14,10 +14,10 @@ void russian_roulette(Particle* p)
if (p->wgt_ < settings::weight_cutoff) {
if (prn() < p->wgt_ / settings::weight_survive) {
p->wgt_ = settings::weight_survive;
p->last_wgt_ = p->wgt_;
p->wgt_last_ = p->wgt_;
} else {
p->wgt_ = 0.;
p->last_wgt_ = 0.;
p->wgt_last_ = 0.;
p->alive_ = false;
}
}