mirror of
https://github.com/QuantumPackage/qp2.git
synced 2025-04-29 11:44:59 +02:00
added the identity matrix in ao_one_e_ints/ao_spherical.irp.f
This commit is contained in:
parent
3d4dc2a225
commit
5f1ab387cb
@ -13,6 +13,13 @@ BEGIN_PROVIDER [ double precision, ao_cart_to_sphe_coef, (ao_num,ao_sphe_num)]
|
|||||||
END_DOC
|
END_DOC
|
||||||
integer :: row,col,k,j
|
integer :: row,col,k,j
|
||||||
!
|
!
|
||||||
|
if (ao_cartesian) then
|
||||||
|
! Identity matrix
|
||||||
|
integer :: i
|
||||||
|
do i=1,ao_sphe_num
|
||||||
|
ao_cart_to_sphe_coef(i,i) = 1.d0
|
||||||
|
enddo
|
||||||
|
else
|
||||||
ao_cart_to_sphe_coef(:,:) = 0.d0
|
ao_cart_to_sphe_coef(:,:) = 0.d0
|
||||||
row = 1
|
row = 1
|
||||||
col = 1
|
col = 1
|
||||||
@ -49,6 +56,7 @@ BEGIN_PROVIDER [ double precision, ao_cart_to_sphe_coef, (ao_num,ao_sphe_num)]
|
|||||||
stop 'Error in ao_cart_to_sphe : angular momentum too high'
|
stop 'Error in ao_cart_to_sphe : angular momentum too high'
|
||||||
end select
|
end select
|
||||||
enddo
|
enddo
|
||||||
|
endif
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user