mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-01-03 09:05:39 +01:00
Moved use_pw into ao_basis module, and ao_one_e_integrals_from_mo in mo_one_e_ints
This commit is contained in:
parent
560406c1fd
commit
c35278cddb
@ -339,3 +339,22 @@ BEGIN_PROVIDER [ character*(4), ao_l_char_space, (ao_num) ]
|
||||
ao_l_char_space(i) = give_ao_character_space
|
||||
enddo
|
||||
END_PROVIDER
|
||||
|
||||
! ---
|
||||
|
||||
BEGIN_PROVIDER [ logical, use_pw ]
|
||||
|
||||
implicit none
|
||||
|
||||
logical :: exist
|
||||
|
||||
use_pw = .false.
|
||||
|
||||
call ezfio_has_ao_basis_ao_expo_pw(exist)
|
||||
if(exist) then
|
||||
PROVIDE ao_expo_pw_ord_transp
|
||||
if(maxval(dabs(ao_expo_pw_ord_transp(4,:,:))) .gt. 1d-15) use_pw = .true.
|
||||
endif
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
|
@ -45,13 +45,3 @@ BEGIN_PROVIDER [ double precision, ao_one_e_integrals_imag,(ao_num,ao_num)]
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
|
||||
BEGIN_PROVIDER [ double precision, ao_one_e_integrals_from_mo, (ao_num, ao_num)]
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Integrals of the one e hamiltonian obtained from the integrals on the MO basis
|
||||
!
|
||||
! WARNING : this is equal to ao_one_e_integrals only if the AO and MO basis have the same number of functions
|
||||
END_DOC
|
||||
call mo_to_ao(mo_one_e_integrals,mo_num,ao_one_e_integrals_from_mo,ao_num)
|
||||
END_PROVIDER
|
||||
|
@ -1674,21 +1674,3 @@ end
|
||||
|
||||
! ---
|
||||
|
||||
BEGIN_PROVIDER [logical, use_pw]
|
||||
|
||||
implicit none
|
||||
|
||||
logical :: exist
|
||||
|
||||
use_pw = .false.
|
||||
|
||||
call ezfio_has_ao_basis_ao_expo_pw(exist)
|
||||
if(exist) then
|
||||
PROVIDE ao_expo_pw_ord_transp
|
||||
if(maxval(dabs(ao_expo_pw_ord_transp(4,:,:))) .gt. 1d-15) use_pw = .true.
|
||||
endif
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
! ---
|
||||
|
||||
|
@ -21,3 +21,14 @@ BEGIN_PROVIDER [ double precision, mo_one_e_integrals,(mo_num,mo_num)]
|
||||
call nullify_small_elements(mo_num,mo_num,mo_one_e_integrals,size(mo_one_e_integrals,1),1.d-15)
|
||||
|
||||
END_PROVIDER
|
||||
|
||||
|
||||
BEGIN_PROVIDER [ double precision, ao_one_e_integrals_from_mo, (ao_num, ao_num)]
|
||||
implicit none
|
||||
BEGIN_DOC
|
||||
! Integrals of the one e hamiltonian obtained from the integrals on the MO basis
|
||||
!
|
||||
! WARNING : this is equal to ao_one_e_integrals only if the AO and MO basis have the same number of functions
|
||||
END_DOC
|
||||
call mo_to_ao(mo_one_e_integrals,mo_num,ao_one_e_integrals_from_mo,ao_num)
|
||||
END_PROVIDER
|
||||
|
Loading…
Reference in New Issue
Block a user