mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: incGamma: adjustments for int64 (#2100)
This commit is contained in:
committed by
Andrew Heather
parent
9dda3626b3
commit
348ae6f4be
@ -255,7 +255,7 @@ Foam::scalar Foam::Math::incGammaRatio_Q(const scalar a, const scalar x)
|
||||
|
||||
scalar sum = 0;
|
||||
|
||||
for (int n = 1; n <= 10; n++)
|
||||
for (label n = 1; n <= 10; ++n)
|
||||
{
|
||||
sum += pow((-x), n)/((a + n)*factorial(n));
|
||||
}
|
||||
@ -393,7 +393,7 @@ Foam::scalar Foam::Math::incGammaRatio_Q(const scalar a, const scalar x)
|
||||
{
|
||||
scalar sum = 0;
|
||||
|
||||
for (int n = 0; n <= (a - 1); n++)
|
||||
for (label n = 0; n <= (a - 1); ++n)
|
||||
{
|
||||
sum += pow(x, n)/factorial(n);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user