9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-30 15:15:38 +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
eta=19.0d0
fak=2.540118935556d0*dexp(-eta*a*a)
if(dabs(eta*a*a).lt.50.d0)then
fak=2.540118935556d0*dexp(-eta*a*a)
else
fak=0.d0
endif
if(a .lt. 0.075d0) then
! expansion for small mu to avoid numerical problems