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
1 changed files with 2 additions and 2 deletions

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