10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-03 09:55:59 +02:00

Safer dsyevd

This commit is contained in:
Anthony Scemama 2017-06-03 00:45:44 +02:00
parent badf770d2b
commit 7bd75d687b

View File

@ -77,10 +77,16 @@
size(F,1), diagonal_Fock_matrix_mo, &
work, lwork, iwork, liwork, info)
if (info /= 0) then
call dsyev( 'V', 'U', mo_tot_num, F, &
size(F,1), diagonal_Fock_matrix_mo, &
work, lwork, info)
if (info /= 0) then
print *, irp_here//' failed : ', info
stop 1
endif
endif
call dgemm('N','N',ao_num,mo_tot_num,mo_tot_num, 1.d0, &
mo_coef, size(mo_coef,1), F, size(F,1), &
@ -88,7 +94,6 @@
deallocate(work, iwork, F)
! endif
END_PROVIDER