mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
refactor of prn() interface and python interface changes
This commit is contained in:
parent
2ec02d6472
commit
638172e68d
53 changed files with 494 additions and 534 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->prn_seeds_ + p->stream_) < 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