mirror of https://github.com/QMCPACK/qmcpack.git
For the case where UseWeight = false, set the weight for the energy to be 0.0 and the weight for the variance to be 2.0/Tau.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@222 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
parent
1e5689881d
commit
5a2cbb4fdf
|
@ -506,6 +506,15 @@ namespace ohmmsqmc {
|
|||
<< cg_tolerance << " stepsize = " << cg_stepsize
|
||||
<< " epsilon = " << cg_epsilon << " Tau = "
|
||||
<< Tau << endl;
|
||||
|
||||
if(!UseWeight){
|
||||
LogOut->getStream() << "#All weights set to 1.0" << endl;
|
||||
w_en = 0.0;
|
||||
w_var = 2.0/Tau;
|
||||
LogOut->getStream() << "#Cost Function: Cost = " << w_en << "*<E> + "
|
||||
<< w_var << "*0.5 Tau <Var>" << endl;
|
||||
}
|
||||
|
||||
putOptParams();
|
||||
|
||||
LogOut->getStream()
|
||||
|
|
Loading…
Reference in New Issue