mirror of
https://gitlab.com/scemama/qmcchem.git
synced 2024-12-22 04:13:31 +01:00
Created pdmc_weight
This commit is contained in:
parent
b6b9a85cb2
commit
2d269aa1fc
@ -156,6 +156,14 @@ BEGIN_PROVIDER [ double precision, E_kin_elec, (elec_num) ]
|
|||||||
|
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
BEGIN_PROVIDER [ double precision, dmc_zv_weight ]
|
||||||
|
implicit none
|
||||||
|
BEGIN_DOC
|
||||||
|
! Weight for Zero-variance in DMC
|
||||||
|
END_DOC
|
||||||
|
dmc_zv_weight = 1.d0
|
||||||
|
END_PROVIDER
|
||||||
|
|
||||||
|
|
||||||
!==========================================================================!
|
!==========================================================================!
|
||||||
! PROPERTIES !
|
! PROPERTIES !
|
||||||
@ -253,7 +261,11 @@ BEGIN_PROVIDER [ double precision, E_loc_zv ]
|
|||||||
BEGIN_DOC
|
BEGIN_DOC
|
||||||
! Zero-variance parameter on E_loc
|
! Zero-variance parameter on E_loc
|
||||||
END_DOC
|
END_DOC
|
||||||
E_loc_zv = E_trial
|
E_loc_zv = E_loc + (E_trial-E_loc) * dmc_zv_weight
|
||||||
|
|
||||||
|
E_loc_zv_min = min(E_loc_zv,E_loc_zv_min)
|
||||||
|
E_loc_zv_max = max(E_loc_zv,E_loc_zv_max)
|
||||||
|
SOFT_TOUCH E_loc_zv_min E_loc_zv_max
|
||||||
END_PROVIDER
|
END_PROVIDER
|
||||||
|
|
||||||
|
|
||||||
|
@ -172,14 +172,12 @@ END_SHELL
|
|||||||
psi_value_save(i_walk) = psi_value
|
psi_value_save(i_walk) = psi_value
|
||||||
E_loc_save(i_walk) = E_loc
|
E_loc_save(i_walk) = E_loc
|
||||||
|
|
||||||
if (calc_E_loc_zv) then
|
if (dabs(pdmc_weight(i_walk)*pop_weight_mult) > 1.d-6) then
|
||||||
if (dabs(pdmc_weight(i_walk)*pop_weight_mult) > 1.d-6) then
|
dmc_zv_weight = 1.d0/(pdmc_weight(i_walk)*pop_weight_mult)
|
||||||
E_loc_zv = E_loc + (E_trial-E_loc)/(pdmc_weight(i_walk)*pop_weight_mult)
|
else
|
||||||
else
|
dmc_zv_weight = 0.d0
|
||||||
E_loc_zv = 0.d0
|
endif
|
||||||
endif
|
TOUCH dmc_zv_weight
|
||||||
TOUCH E_loc_zv
|
|
||||||
endif
|
|
||||||
|
|
||||||
BEGIN_SHELL [ /usr/bin/python ]
|
BEGIN_SHELL [ /usr/bin/python ]
|
||||||
from properties import *
|
from properties import *
|
||||||
|
Loading…
Reference in New Issue
Block a user