mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 20:36:01 +01:00
Restored dgemm for AO to MO in doc version
This commit is contained in:
parent
4367d03353
commit
5a833cf3f0
@ -666,25 +666,41 @@ integer function qmckl_compute_mo_basis_mo_vgl_doc_f(context, &
|
|||||||
integer*8 :: i,j,k
|
integer*8 :: i,j,k
|
||||||
double precision :: c1, c2, c3, c4, c5
|
double precision :: c1, c2, c3, c4, c5
|
||||||
|
|
||||||
do j=1,point_num
|
integer*8 :: LDA, LDB, LDC
|
||||||
mo_vgl(:,:,j) = 0.d0
|
|
||||||
do k=1,ao_num
|
info = QMCKL_SUCCESS
|
||||||
if (ao_vgl(k,1,j) /= 0.d0) then
|
if (.False.) then ! fast algorithm
|
||||||
c1 = ao_vgl(k,1,j)
|
do j=1,point_num
|
||||||
c2 = ao_vgl(k,2,j)
|
mo_vgl(:,:,j) = 0.d0
|
||||||
c3 = ao_vgl(k,3,j)
|
do k=1,ao_num
|
||||||
c4 = ao_vgl(k,4,j)
|
if (ao_vgl(k,1,j) /= 0.d0) then
|
||||||
c5 = ao_vgl(k,5,j)
|
c1 = ao_vgl(k,1,j)
|
||||||
do i=1,mo_num
|
c2 = ao_vgl(k,2,j)
|
||||||
mo_vgl(i,1,j) = mo_vgl(i,1,j) + coef_normalized_t(i,k) * c1
|
c3 = ao_vgl(k,3,j)
|
||||||
mo_vgl(i,2,j) = mo_vgl(i,2,j) + coef_normalized_t(i,k) * c2
|
c4 = ao_vgl(k,4,j)
|
||||||
mo_vgl(i,3,j) = mo_vgl(i,3,j) + coef_normalized_t(i,k) * c3
|
c5 = ao_vgl(k,5,j)
|
||||||
mo_vgl(i,4,j) = mo_vgl(i,4,j) + coef_normalized_t(i,k) * c4
|
do i=1,mo_num
|
||||||
mo_vgl(i,5,j) = mo_vgl(i,5,j) + coef_normalized_t(i,k) * c5
|
mo_vgl(i,1,j) = mo_vgl(i,1,j) + coef_normalized_t(i,k) * c1
|
||||||
end do
|
mo_vgl(i,2,j) = mo_vgl(i,2,j) + coef_normalized_t(i,k) * c2
|
||||||
end if
|
mo_vgl(i,3,j) = mo_vgl(i,3,j) + coef_normalized_t(i,k) * c3
|
||||||
|
mo_vgl(i,4,j) = mo_vgl(i,4,j) + coef_normalized_t(i,k) * c4
|
||||||
|
mo_vgl(i,5,j) = mo_vgl(i,5,j) + coef_normalized_t(i,k) * c5
|
||||||
|
end do
|
||||||
|
end if
|
||||||
|
end do
|
||||||
end do
|
end do
|
||||||
end do
|
|
||||||
|
else ! dgemm
|
||||||
|
|
||||||
|
LDA = size(coef_normalized_t,1)
|
||||||
|
LDB = size(ao_vgl,1)
|
||||||
|
LDC = size(mo_vgl,1)
|
||||||
|
|
||||||
|
info = qmckl_dgemm(context,'N', 'N', mo_num, point_num*5_8, ao_num*1_8, 1.d0, &
|
||||||
|
coef_normalized_t, LDA, ao_vgl, LDB, &
|
||||||
|
0.d0, mo_vgl, LDC)
|
||||||
|
|
||||||
|
end if
|
||||||
|
|
||||||
end function qmckl_compute_mo_basis_mo_vgl_doc_f
|
end function qmckl_compute_mo_basis_mo_vgl_doc_f
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user