mirror of
https://github.com/LCPQ/quantum_package
synced 2024-11-12 17:13:54 +01:00
Bug in diag_fock
This commit is contained in:
parent
c03132b4f9
commit
b9cfe96b17
@ -4,11 +4,11 @@ subroutine diagonalize_fock()
|
||||
double precision, allocatable :: mo_coef_new(:,:), R(:,:),eigvalues(:)
|
||||
!DIR$ ATTRIBUTES ALIGN : $IRP_ALIGN :: mo_coef_new, R
|
||||
|
||||
allocate(R(mo_tot_num,mo_tot_num))
|
||||
allocate(R(size(Fock_matrix_mo,1),mo_tot_num))
|
||||
allocate(mo_coef_new(ao_num_align,mo_tot_num),eigvalues(mo_tot_num))
|
||||
mo_coef_new = mo_coef
|
||||
|
||||
call lapack_diag(eigvalues,R,Fock_matrix_mo,mo_tot_num,mo_tot_num)
|
||||
call lapack_diag(eigvalues,R,Fock_matrix_mo,size(Fock_matrix_mo,1),mo_tot_num)
|
||||
|
||||
call dgemm('N','N',ao_num,mo_tot_num,mo_tot_num,1.d0,mo_coef_new,size(mo_coef_new,1),R,size(R,1),0.d0,mo_coef,size(mo_coef,1))
|
||||
deallocate(mo_coef_new,R,eigvalues)
|
||||
|
Loading…
Reference in New Issue
Block a user