mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
incorporated code review changes
This commit is contained in:
parent
08ce3f4614
commit
428bab4fd2
14 changed files with 82 additions and 79 deletions
|
|
@ -12,7 +12,7 @@ namespace openmc {
|
|||
void russian_roulette(Particle* p)
|
||||
{
|
||||
if (p->wgt_ < settings::weight_cutoff) {
|
||||
if (prn(p->prn_seeds_ + p->stream_) < p->wgt_ / settings::weight_survive) {
|
||||
if (prn(p->current_seed()) < p->wgt_ / settings::weight_survive) {
|
||||
p->wgt_ = settings::weight_survive;
|
||||
p->wgt_last_ = p->wgt_;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue