Skip to content

Commit

Permalink
Merge pull request #365 from QuantumPackage/Ydrnan-patch-2
Browse files Browse the repository at this point in the history
Fix segfault in scf
  • Loading branch information
scemama authored Jan 25, 2025
2 parents 0c6d513 + 5a591f5 commit 2f67bd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scf_utils/roothaan_hall_scf.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,10 @@ subroutine Roothaan_Hall_SCF
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))
Expand Down

0 comments on commit 2f67bd2

Please sign in to comment.