9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-21 11:03:29 +01:00

Remove possible division by zero

This commit is contained in:
Anthony Scemama 2020-12-08 22:05:23 +01:00
parent 008d1b9e8f
commit b89f53f40b

View File

@ -1550,6 +1550,7 @@ subroutine nullify_small_elements(m,n,A,LDA,thresh)
amax = max(dabs(A(i,j)), amax)
enddo
enddo
if (amax == 0.d0) return
amax = 1.d0/amax
! Remove tiny elements