mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-19 04:22:32 +01:00
Fix floating-point exception
This commit is contained in:
parent
7edfd4e326
commit
d6542e62a3
@ -1,7 +1,10 @@
|
|||||||
real*8 function logabsgamma(x)
|
real*8 function logabsgamma(x)
|
||||||
implicit none
|
implicit none
|
||||||
real*8, intent(in) :: x
|
real*8, intent(in) :: x
|
||||||
|
logabsgamma = 1.d32 ! Avoid floating point exception
|
||||||
|
if (x>0.d0) then
|
||||||
logabsgamma = log(abs(gamma(x)))
|
logabsgamma = log(abs(gamma(x)))
|
||||||
|
endif
|
||||||
end function logabsgamma
|
end function logabsgamma
|
||||||
|
|
||||||
BEGIN_PROVIDER [ integer, NSOMOMax]
|
BEGIN_PROVIDER [ integer, NSOMOMax]
|
||||||
|
Loading…
Reference in New Issue
Block a user