mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fixed typo in rational distribution constructor
This commit is contained in:
parent
29a515c7ba
commit
b776dfdc0b
1 changed files with 2 additions and 1 deletions
|
|
@ -100,8 +100,9 @@ Rational::Rational(pugi::xml_node node)
|
|||
const double a = params.at(0);
|
||||
const double b = params.at(1);
|
||||
const double n = params.at(2);
|
||||
|
||||
offset_ = std::pow(a, n+1);
|
||||
span_ = std::pow(a, n+1) - offset_;
|
||||
span_ = std::pow(b, n + 1) - offset_;
|
||||
ninv_ = 1/(n+1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue