Add trailing underscore on Particle data members

This commit is contained in:
Paul Romano 2019-02-27 08:23:43 -06:00
parent 38e39c4486
commit b4ed267d4b
38 changed files with 912 additions and 911 deletions

View file

@ -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;
}
}
}