mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 10:06:09 +01:00
Avoid FPE in Jastrow
This commit is contained in:
parent
71d271572e
commit
2a38543ba0
@ -9943,7 +9943,12 @@ integer function qmckl_compute_jastrow_champ_value_doc_f(context, &
|
|||||||
end do
|
end do
|
||||||
|
|
||||||
do i = 1, walk_num
|
do i = 1, walk_num
|
||||||
value(i) = dexp(value(i))
|
! Flush to zero to avoid floating-point exception
|
||||||
|
if (value(i) < -100.d0) then
|
||||||
|
value(i) = 0.d0
|
||||||
|
else
|
||||||
|
value(i) = dexp(value(i))
|
||||||
|
endif
|
||||||
end do
|
end do
|
||||||
|
|
||||||
end function qmckl_compute_jastrow_champ_value_doc_f
|
end function qmckl_compute_jastrow_champ_value_doc_f
|
||||||
|
Loading…
Reference in New Issue
Block a user