10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-23 12:55:37 +01:00

removed a floating point exception in routines_exc_sr_lda.irp.f

This commit is contained in:
Emmanuel Giner 2020-06-08 12:00:25 +02:00
parent 7648010331
commit 408257dbfd

View File

@ -254,7 +254,11 @@ end
double precision derf double precision derf
eta=19.0d0 eta=19.0d0
if(dabs(eta*a*a).lt.50.d0)then
fak=2.540118935556d0*dexp(-eta*a*a) fak=2.540118935556d0*dexp(-eta*a*a)
else
fak=0.d0
endif
if(a .lt. 0.075d0) then if(a .lt. 0.075d0) then
! expansion for small mu to avoid numerical problems ! expansion for small mu to avoid numerical problems