mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge branch 'distribution-alias-sampling' of github.com:myerspat/openmc into distribution-alias-sampling
This commit is contained in:
commit
903c93de26
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ void Discrete::init_alias() {
|
|||
p_[k] += p_[j] - 1.0;
|
||||
alias_[j] = k;
|
||||
|
||||
// Remove last vector element and or move large index to small vector
|
||||
// Move large index to small vector, if it is no longer large
|
||||
if (p_[k] < 1.0) {
|
||||
small.push_back(k);
|
||||
large.pop_back();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue