1
0
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:
Anthony Scemama 2023-08-23 13:53:37 +02:00
parent 71d271572e
commit 2a38543ba0

View File

@ -9943,7 +9943,12 @@ integer function qmckl_compute_jastrow_champ_value_doc_f(context, &
end do
do i = 1, walk_num
! 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 function qmckl_compute_jastrow_champ_value_doc_f