9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-11-07 22:13:38 +01:00
qp2/src/mo_one_e_ints/pot_mo_ints.irp.f

47 lines
1.5 KiB
Fortran
Raw Normal View History

2019-01-25 11:39:31 +01:00
BEGIN_PROVIDER [double precision, mo_integrals_n_e, (mo_num,mo_num)]
implicit none
BEGIN_DOC
! Nucleus-electron interaction on the |MO| basis
END_DOC
2020-03-24 09:09:54 +01:00
if (read_mo_integrals_n_e) then
call ezfio_get_mo_one_e_ints_mo_integrals_n_e(mo_integrals_n_e)
2019-01-25 11:39:31 +01:00
print *, 'MO N-e integrals read from disk'
else
call ao_to_mo( &
ao_integrals_n_e, &
size(ao_integrals_n_e,1), &
mo_integrals_n_e, &
size(mo_integrals_n_e,1) &
)
endif
2020-03-24 09:09:54 +01:00
if (write_mo_integrals_n_e) then
call ezfio_set_mo_one_e_ints_mo_integrals_n_e(mo_integrals_n_e)
2019-01-25 11:39:31 +01:00
print *, 'MO N-e integrals written to disk'
endif
END_PROVIDER
BEGIN_PROVIDER [double precision, mo_integrals_n_e_per_atom, (mo_num,mo_num,nucl_num)]
implicit none
BEGIN_DOC
! mo_integrals_n_e_per_atom(i,j,k) =
! $\langle \phi_i| -\frac{1}{|r-R_k|} | \phi_j \rangle$.
! where R_k is the coordinate of the k-th nucleus.
END_DOC
integer :: k
mo_integrals_n_e_per_atom = 0.d0
do k = 1, nucl_num
call ao_to_mo( &
ao_integrals_n_e_per_atom(1,1,k), &
size(ao_integrals_n_e_per_atom,1), &
mo_integrals_n_e_per_atom(1,1,k), &
size(mo_integrals_n_e_per_atom,1) &
)
enddo
END_PROVIDER