mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Rename other 'last' members in Particle
This commit is contained in:
parent
368f89697d
commit
cd0ca81914
12 changed files with 141 additions and 137 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue