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:
Jordan Vincent 2005-03-01 19:13:49 +00:00
parent 1e5689881d
commit 5a2cbb4fdf
1 changed files with 9 additions and 0 deletions

View File

@ -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()