mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Change alias sampling comment
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu>
This commit is contained in:
parent
19c807ade2
commit
a953938bdf
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