2014-04-17 23:50:51 +02:00
|
|
|
|
|
|
|
BEGIN_PROVIDER [double precision, ao_ortho_lowdin_coef, (ao_num_align,ao_num)]
|
2015-03-20 09:03:50 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2014-04-17 23:50:51 +02:00
|
|
|
! matrix of the coefficients of the mos generated by the
|
|
|
|
! orthonormalization by the S^{-1/2} canonical transformation of the aos
|
|
|
|
! ao_ortho_lowdin_coef(i,j) = coefficient of the ith ao on the jth ao_ortho_lowdin orbital
|
2015-03-20 09:03:50 +01:00
|
|
|
END_DOC
|
|
|
|
integer :: i,j,k,l
|
|
|
|
double precision :: tmp_matrix(ao_num_align,ao_num),accu
|
|
|
|
do j=1, ao_num
|
|
|
|
do i=1, ao_num
|
|
|
|
tmp_matrix(i,j) = 0.d0
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
do i=1, ao_num
|
|
|
|
tmp_matrix(i,i) = 1.d0
|
2014-04-17 23:50:51 +02:00
|
|
|
enddo
|
2015-03-20 09:03:50 +01:00
|
|
|
call ortho_lowdin(ao_overlap,ao_num_align,ao_num,tmp_matrix,ao_num_align,ao_num)
|
|
|
|
do i=1, ao_num
|
|
|
|
do j=1, ao_num
|
|
|
|
ao_ortho_lowdin_coef(j,i) = tmp_matrix(i,j)
|
|
|
|
enddo
|
2014-04-17 23:50:51 +02:00
|
|
|
enddo
|
|
|
|
END_PROVIDER
|
|
|
|
BEGIN_PROVIDER [double precision, ao_ortho_lowdin_overlap, (ao_num_align,ao_num)]
|
2015-03-20 09:03:50 +01:00
|
|
|
implicit none
|
|
|
|
BEGIN_DOC
|
2014-04-17 23:50:51 +02:00
|
|
|
! overlap matrix of the ao_ortho_lowdin
|
|
|
|
! supposed to be the Identity
|
2015-03-20 09:03:50 +01:00
|
|
|
END_DOC
|
|
|
|
integer :: i,j,k,l
|
|
|
|
double precision :: c
|
|
|
|
do j=1, ao_num
|
|
|
|
do i=1, ao_num
|
|
|
|
ao_ortho_lowdin_overlap(i,j) = 0.d0
|
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
do k=1, ao_num
|
|
|
|
do j=1, ao_num
|
|
|
|
c = 0.d0
|
|
|
|
do l=1, ao_num
|
|
|
|
c = ao_ortho_lowdin_coef(j,l) * ao_overlap(k,l)
|
|
|
|
enddo
|
|
|
|
do i=1, ao_num
|
|
|
|
ao_ortho_lowdin_overlap(i,j) += ao_ortho_lowdin_coef(i,k) * c
|
|
|
|
enddo
|
2014-04-17 23:50:51 +02:00
|
|
|
enddo
|
|
|
|
enddo
|
|
|
|
END_PROVIDER
|