10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-07-16 08:00:31 +02:00
quantum_package/src/Integrals_Monoelec/pot_mo_ints.irp.f

48 lines
1.7 KiB
Fortran
Raw Normal View History

2014-04-16 22:16:32 +02:00
BEGIN_PROVIDER [double precision, mo_nucl_elec_integral, (mo_tot_num_align,mo_tot_num)]
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
call read_one_e_integrals('mo_ne_integral', mo_nucl_elec_integral, &
size(mo_nucl_elec_integral,1), size(mo_nucl_elec_integral,2))
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
call write_one_e_integrals('mo_ne_integral', mo_nucl_elec_integral, &
size(mo_nucl_elec_integral,1), size(mo_nucl_elec_integral,2))
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
BEGIN_PROVIDER [double precision, mo_nucl_elec_integral_per_atom, (mo_tot_num_align,mo_tot_num,nucl_num)]
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