mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-11-18 11:23:38 +01:00
Fixed NaN bug in DIIS
This commit is contained in:
parent
470addca02
commit
d65c2cba57
@ -208,8 +208,8 @@ END_DOC
|
|||||||
do j=1,dim_DIIS
|
do j=1,dim_DIIS
|
||||||
do i=1,dim_DIIS
|
do i=1,dim_DIIS
|
||||||
|
|
||||||
j_DIIS = mod(iteration_SCF-j,max_dim_DIIS)+1
|
j_DIIS = min(mod(iteration_SCF-j,max_dim_DIIS)+1,dim_DIIS)
|
||||||
i_DIIS = mod(iteration_SCF-i,max_dim_DIIS)+1
|
i_DIIS = min(mod(iteration_SCF-i,max_dim_DIIS)+1,dim_DIIS)
|
||||||
|
|
||||||
! Compute product of two errors vectors
|
! Compute product of two errors vectors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user