mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Fixes bug in sampling angle for CorrelatedAngleEnergy
This commit is contained in:
parent
abf30b39b6
commit
59db5f1260
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ void CorrelatedAngleEnergy::sample(double E_in, double& E_out, double& mu,
|
|||
}
|
||||
|
||||
// Find correlated angular distribution for closest outgoing energy bin
|
||||
if (r1 - c_k < c_k1 - r1) {
|
||||
if (r1 - c_k < c_k1 - r1 || distribution_[l].interpolation == Interpolation::histogram) {
|
||||
mu = distribution_[l].angle[k]->sample(seed);
|
||||
} else {
|
||||
mu = distribution_[l].angle[k + 1]->sample(seed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue