1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-12-22 04:13:40 +01:00

Accelerated

This commit is contained in:
Anthony Scemama 2019-06-18 11:15:17 +02:00
parent 2906771a3d
commit ce2f6f4a67

View File

@ -65,11 +65,13 @@ program qmcpack
enddo
!$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(i,j,istate,hij) REDUCTION(+:F)
do k=1,N_det
if (sum(coef(k,:)*coef(k,:))==0.d0) cycle
call i_H_j(det(1,1,k), det(1,1,k), N_int, hij)
do istate=1,N_states
F(istate) = F(istate) + hij*coef(k,istate)*coef(k,istate)
enddo
do l=1,k-1
if (sum(coef(l,:)*coef(l,:))==0.d0) cycle
call i_H_j(det(1,1,k), det(1,1,l), N_int, hij)
do istate=1,N_states
F(istate) = F(istate) + 2.d0*hij*coef(k,istate)*coef(l,istate)