10
0
mirror of https://gitlab.com/scemama/eplf synced 2024-10-31 19:23:55 +01:00

Bug in density

This commit is contained in:
Anthony Scemama 2010-04-29 12:59:30 +02:00
parent 4b123d410f
commit cc7163ebd3
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ BEGIN_PROVIDER [ real, density_alpha_value_p ]
do k=1,det_num
do l=1,det_num
buffer = 0.
do i=1,mo_active_num
do i=1,elec_alpha_num-mo_closed_num
buffer += mo_value_p(det(i,k,1))*mo_value_p(det(i,l,1))
enddo
density_alpha_value_p += det_coef(k)*det_coef(l)*buffer
@ -70,7 +70,7 @@ BEGIN_PROVIDER [ real, density_beta_value_p ]
do k=1,det_num
do l=1,det_num
buffer = 0.
do i=1,mo_active_num
do i=1,elec_beta_num-mo_closed_num
buffer += mo_value_p(det(i,k,2))*mo_value_p(det(i,l,2))
enddo
density_beta_value_p += det_coef(k)*det_coef(l)*buffer

View File

@ -69,7 +69,7 @@ END_PROVIDER
! Value of the d_upup and d_updn quantities needed for EPLF
END_DOC
integer :: i, j, k, l, m, n
integer :: i, j
double precision :: thr
thr = 1.d-12 / eplf_gamma