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

Merge pull request #134 from QuantumPackage/bugfix

Fixed NaN bug in DIIS
This commit is contained in:
Anthony Scemama 2020-09-02 18:48:45 +02:00 committed by GitHub
commit e2e500dad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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