10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-06-26 15:12:19 +02:00

DIIS stability

This commit is contained in:
Anthony Scemama 2020-05-25 23:32:23 +02:00
parent 5803482a60
commit a460863632

View File

@ -277,7 +277,7 @@ END_DOC
return
endif
if (rcond < 1.d-10) then
if (rcond == 0.d-10) then
dim_DIIS = 0
return
endif
@ -287,25 +287,12 @@ END_DOC
X_vector_DIIS = C_vector_DIIS
call dgesv ( dim_DIIS+1 , 1, B_matrix_DIIS, size(B_matrix_DIIS,1), &
ipiv , X_vector_DIIS , size(X_vector_DIIS,1), info)
! call dsysvx('N','U',dim_DIIS+1,1, &
! B_matrix_DIIS,size(B_matrix_DIIS,1), &
! AF, size(AF,1), &
! ipiv, &
! C_vector_DIIS,size(C_vector_DIIS,1), &
! X_vector_DIIS,size(X_vector_DIIS,1), &
! rcond, &
! ferr, &
! berr, &
! scratch,size(scratch), &
! iwork, &
! info &
! )
deallocate(scratch,AF,iwork)
deallocate(scratch,AF,iwork)
if(info < 0) then
stop 'bug in DIIS'
endif
if(info < 0) then
stop 'bug in DIIS'
endif
! Compute extrapolated Fock matrix