WOSPotential settings are done within MolecuDMC::run.

git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@163 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
Dyutiman Das 2004-12-15 21:16:13 +00:00
parent b45a3dd2c3
commit 0cd3f8b1c7
1 changed files with 9 additions and 6 deletions

View File

@ -73,13 +73,16 @@ namespace ohmmsqmc {
drift.resize(W.getTotalNum());
if(put(qmc_node)){
/// set the Tau for calculation in WOS
H.setTau(Tau);
// extract the WOS potential
// extract the WOS potential and reset the parameters for DMC
wos_ref = dynamic_cast<WOSPotential*>(H.getHamiltonian("wos"));
if(wos_ref) {
cout << wos_ref->m_runs << '\t' << wos_ref->m_norm << endl;
wos_ref->set_mrun(wos_ref->dmc_runs);
cout << "Using " << wos_ref->m_runs << " runners/walker for DMC" << endl;
H.setTau(Tau);
} else {
H.setTau(0.0);
}
//set the data members to start a new run
// getReady();