10
0
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-06-28 16:12:40 +02:00
QuantumPackage/src/mo_one_e_ints/pot_mo_ints_cplx.irp.f

60 lines
2.2 KiB
Fortran
Raw Normal View History

2020-02-20 22:38:02 +01:00
BEGIN_PROVIDER [complex*16, mo_integrals_n_e_complex, (mo_num,mo_num)]
2020-01-29 21:15:48 +01:00
implicit none
BEGIN_DOC
! Kinetic energy integrals in the MO basis
END_DOC
integer :: i,j
2020-03-13 00:02:03 +01:00
print *, 'Providing MO N-e integrals'
2020-06-17 20:16:00 +02:00
if (read_mo_integrals_n_e) then
call ezfio_get_mo_one_e_ints_mo_integrals_n_e_complex(mo_integrals_n_e_complex)
2020-01-29 21:15:48 +01:00
print *, 'MO N-e integrals read from disk'
else
2020-03-13 00:02:03 +01:00
print *, 'Providing MO N-e integrals from AO N-e integrals'
2020-01-29 21:15:48 +01:00
call ao_to_mo_complex( &
ao_integrals_n_e_complex, &
size(ao_integrals_n_e_complex,1), &
mo_integrals_n_e_complex, &
size(mo_integrals_n_e_complex,1) &
)
endif
2020-06-17 20:16:00 +02:00
if (write_mo_integrals_n_e) then
call ezfio_set_mo_one_e_ints_mo_integrals_n_e_complex(mo_integrals_n_e_complex)
2020-01-29 21:15:48 +01:00
print *, 'MO N-e integrals written to disk'
endif
END_PROVIDER
2020-03-18 22:30:27 +01:00
!============================================!
! !
! kpts !
! !
!============================================!
2020-01-29 21:15:48 +01:00
2020-03-18 22:30:27 +01:00
BEGIN_PROVIDER [complex*16, mo_integrals_n_e_kpts, (mo_num_per_kpt,mo_num_per_kpt,kpt_num)]
implicit none
BEGIN_DOC
! Kinetic energy integrals in the MO basis
END_DOC
integer :: i,j
print *, 'Providing MO N-e integrals'
2020-06-17 20:16:00 +02:00
if (read_mo_integrals_n_e) then
call ezfio_get_mo_one_e_ints_mo_integrals_n_e_kpts(mo_integrals_n_e_kpts)
2020-03-18 22:30:27 +01:00
print *, 'MO N-e integrals read from disk'
else
print *, 'Providing MO N-e integrals from AO N-e integrals'
call ao_to_mo_kpts( &
ao_integrals_n_e_kpts, &
size(ao_integrals_n_e_kpts,1), &
mo_integrals_n_e_kpts, &
size(mo_integrals_n_e_kpts,1) &
)
endif
2020-06-17 20:16:00 +02:00
if (write_mo_integrals_n_e) then
call ezfio_set_mo_one_e_ints_mo_integrals_n_e_kpts(mo_integrals_n_e_kpts)
2020-03-18 22:30:27 +01:00
print *, 'MO N-e integrals written to disk'
endif
END_PROVIDER