10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2025-02-22 17:38:57 +01:00

Fix segfault in scf

This commit is contained in:
Yann Damour 2025-01-24 20:13:32 +01:00 committed by GitHub
parent 0c6d513bbf
commit 5a591f5240
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,9 +228,10 @@ END_DOC
do while (i<mo_num)
j=i+1
m=1
do while ( (j<=mo_num).and.(fock_matrix_diag_mo(j)-fock_matrix_diag_mo(i) < 1.d-5) )
do while ( (fock_matrix_diag_mo(j)-fock_matrix_diag_mo(i) < 1.d-5) )
j += 1
m += 1
if (j > mo_num) exit
enddo
if (m>1) then
call dgemm('N','T',ao_num,ao_num,m,1.d0,mo_coef(1,i),size(mo_coef,1),mo_coef(1,i),size(mo_coef,1),0.d0,S,size(S,1))