10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-19 12:32:30 +01:00
QuantumPackage/src/scf_utils/huckel.irp.f

36 lines
1004 B
Fortran
Raw Normal View History

2019-01-25 11:39:31 +01:00
subroutine huckel_guess
implicit none
BEGIN_DOC
! Build the MOs using the extended Huckel model
END_DOC
integer :: i,j
double precision :: accu
double precision :: c
character*(64) :: label
double precision, allocatable :: A(:,:)
label = "Guess"
c = 0.5d0 * 1.75d0
allocate (A(ao_num, ao_num))
A = 0.d0
do j=1,ao_num
do i=1,ao_num
2020-12-08 23:18:47 +01:00
A(i,j) = c * ao_overlap(i,j) * &
(ao_one_e_integrals_diag(i) + ao_one_e_integrals_diag(j) )
2019-01-25 11:39:31 +01:00
enddo
2020-12-08 23:18:47 +01:00
A(j,j) = ao_one_e_integrals_diag(j) + ao_two_e_integral_alpha(j,j)
2019-01-25 11:39:31 +01:00
enddo
Fock_matrix_ao_alpha(1:ao_num,1:ao_num) = A(1:ao_num,1:ao_num)
Fock_matrix_ao_beta (1:ao_num,1:ao_num) = A(1:ao_num,1:ao_num)
TOUCH Fock_matrix_ao_alpha Fock_matrix_ao_beta
mo_coef = eigenvectors_fock_matrix_mo
2020-11-11 15:51:19 +01:00
call restore_symmetry(ao_num,mo_num,mo_coef,size(mo_coef,1),1.d-10)
2020-11-11 10:26:36 +01:00
call orthonormalize_mos
2019-01-25 11:39:31 +01:00
SOFT_TOUCH mo_coef
call save_mos
deallocate(A)
end