2019-01-25 11:39:31 +01:00
|
|
|
BEGIN_PROVIDER [ double precision, mo_one_e_integrals,(mo_num,mo_num)]
|
|
|
|
implicit none
|
|
|
|
integer :: i,j,n,l
|
|
|
|
BEGIN_DOC
|
2019-02-04 23:51:09 +01:00
|
|
|
! array of the one-electron Hamiltonian on the |MO| basis :
|
|
|
|
! sum of the kinetic and nuclear electronic potentials (and pseudo potential if needed)
|
2019-01-25 11:39:31 +01:00
|
|
|
END_DOC
|
2019-02-04 23:51:09 +01:00
|
|
|
print*,'Providing the one-electron integrals'
|
2019-01-25 11:39:31 +01:00
|
|
|
|
|
|
|
IF (read_mo_one_e_integrals) THEN
|
|
|
|
call ezfio_get_mo_one_e_ints_mo_one_e_integrals(mo_one_e_integrals)
|
|
|
|
ELSE
|
|
|
|
mo_one_e_integrals = mo_integrals_n_e + mo_kinetic_integrals
|
|
|
|
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
IF (write_mo_one_e_integrals) THEN
|
|
|
|
call ezfio_set_mo_one_e_ints_mo_one_e_integrals(mo_one_e_integrals)
|
|
|
|
print *, 'MO one-e integrals written to disk'
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
END_PROVIDER
|
2020-02-20 22:22:03 +01:00
|
|
|
|
|
|
|
BEGIN_PROVIDER [ double precision, mo_one_e_integrals_diag,(mo_num)]
|
|
|
|
implicit none
|
|
|
|
integer :: i
|
|
|
|
BEGIN_DOC
|
|
|
|
! diagonal elements of mo_one_e_integrals or mo_one_e_integrals_complex
|
|
|
|
END_DOC
|
|
|
|
|
|
|
|
if (is_complex) then
|
2020-03-20 20:20:04 +01:00
|
|
|
integer :: k,i_shft
|
|
|
|
PROVIDE mo_one_e_integrals_kpts
|
|
|
|
do k=1,kpt_num
|
|
|
|
i_shft = (k-1)*mo_num_per_kpt
|
|
|
|
do i=1,mo_num_per_kpt
|
|
|
|
mo_one_e_integrals_diag(i+i_shft) = dble(mo_one_e_integrals_kpts(i,i,k))
|
|
|
|
enddo
|
2020-02-20 22:22:03 +01:00
|
|
|
enddo
|
|
|
|
else
|
|
|
|
PROVIDE mo_one_e_integrals
|
|
|
|
do i=1,mo_num
|
|
|
|
mo_one_e_integrals_diag(i) = mo_one_e_integrals(i,i)
|
|
|
|
enddo
|
|
|
|
endif
|
|
|
|
END_PROVIDER
|