2017-11-27 10:58:32 +01:00
|
|
|
BEGIN_PROVIDER [double precision, mo_nucl_elec_integral, (mo_tot_num,mo_tot_num)]
|
2014-04-16 22:16:32 +02:00
|
|
|
implicit none
|
2015-03-19 21:14:52 +01:00
|
|
|
BEGIN_DOC
|
|
|
|
! interaction nuclear electron on the MO basis
|
|
|
|
END_DOC
|
2014-04-16 22:16:32 +02:00
|
|
|
|
2016-09-22 11:28:27 +02:00
|
|
|
if (read_mo_one_integrals) then
|
2018-10-17 16:28:57 +02:00
|
|
|
call ezfio_get_mo_one_e_integrals_integral_nuclear(mo_nucl_elec_integral)
|
2016-09-22 11:28:27 +02:00
|
|
|
print *, 'MO N-e integrals read from disk'
|
|
|
|
else
|
|
|
|
call ao_to_mo( &
|
|
|
|
ao_nucl_elec_integral, &
|
|
|
|
size(ao_nucl_elec_integral,1), &
|
|
|
|
mo_nucl_elec_integral, &
|
2016-09-22 12:28:12 +02:00
|
|
|
size(mo_nucl_elec_integral,1) &
|
2016-09-22 11:28:27 +02:00
|
|
|
)
|
|
|
|
endif
|
|
|
|
if (write_mo_one_integrals) then
|
2018-10-17 16:28:57 +02:00
|
|
|
call ezfio_set_mo_one_e_integrals_integral_nuclear(mo_nucl_elec_integral)
|
2016-09-22 11:28:27 +02:00
|
|
|
print *, 'MO N-e integrals written to disk'
|
|
|
|
endif
|
2016-06-17 12:42:59 +02:00
|
|
|
|
2014-04-16 22:16:32 +02:00
|
|
|
END_PROVIDER
|
|
|
|
|
2015-03-19 21:14:52 +01:00
|
|
|
|
2017-11-27 10:58:32 +01:00
|
|
|
BEGIN_PROVIDER [double precision, mo_nucl_elec_integral_per_atom, (mo_tot_num,mo_tot_num,nucl_num)]
|
2015-03-19 21:14:52 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
|
|
|
! mo_nucl_elec_integral_per_atom(i,j,k) = -<MO(i)|1/|r-Rk|MO(j)>
|
|
|
|
! where Rk is the geometry of the kth atom
|
|
|
|
END_DOC
|
|
|
|
|
2016-09-22 12:45:27 +02:00
|
|
|
integer :: k
|
2015-03-19 21:14:52 +01:00
|
|
|
mo_nucl_elec_integral_per_atom = 0.d0
|
|
|
|
do k = 1, nucl_num
|
2016-09-22 11:28:27 +02:00
|
|
|
call ao_to_mo( &
|
|
|
|
ao_nucl_elec_integral_per_atom(1,1,k), &
|
|
|
|
size(ao_nucl_elec_integral_per_atom,1), &
|
|
|
|
mo_nucl_elec_integral_per_atom(1,1,k), &
|
2016-09-22 12:28:12 +02:00
|
|
|
size(mo_nucl_elec_integral_per_atom,1) &
|
2016-09-22 11:28:27 +02:00
|
|
|
)
|
2015-03-19 21:14:52 +01:00
|
|
|
enddo
|
2016-06-17 12:42:59 +02:00
|
|
|
|
2015-03-19 21:14:52 +01:00
|
|
|
END_PROVIDER
|
|
|
|
|