mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Add trailing underscore on Particle data members
This commit is contained in:
parent
38e39c4486
commit
b4ed267d4b
38 changed files with 912 additions and 911 deletions
|
|
@ -11,14 +11,14 @@ namespace openmc {
|
|||
|
||||
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;
|
||||
if (p->wgt_ < settings::weight_cutoff) {
|
||||
if (prn() < p->wgt_ / settings::weight_survive) {
|
||||
p->wgt_ = settings::weight_survive;
|
||||
p->last_wgt_ = p->wgt_;
|
||||
} else {
|
||||
p->wgt = 0.;
|
||||
p->last_wgt = 0.;
|
||||
p->alive = false;
|
||||
p->wgt_ = 0.;
|
||||
p->last_wgt_ = 0.;
|
||||
p->alive_ = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue