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

Fixed NaN bug in DIIS

This commit is contained in:
Anthony Scemama 2020-09-02 15:53:56 +02:00
parent 470addca02
commit d65c2cba57

View File

@ -208,8 +208,8 @@ END_DOC
do j=1,dim_DIIS
do i=1,dim_DIIS
j_DIIS = mod(iteration_SCF-j,max_dim_DIIS)+1
i_DIIS = mod(iteration_SCF-i,max_dim_DIIS)+1
j_DIIS = min(mod(iteration_SCF-j,max_dim_DIIS)+1,dim_DIIS)
i_DIIS = min(mod(iteration_SCF-i,max_dim_DIIS)+1,dim_DIIS)
! Compute product of two errors vectors