Ejemplo n.º 1
0
QMCDriver* RNFactory::create(MCWalkerConfiguration& w, TrialWaveFunction& psi, TrialWaveFunction& guide
                             , QMCHamiltonian& h, HamiltonianPool& hpool,WaveFunctionPool& ppool)
{
  app_log() << "Creating RNDMCMP for the qmc driver" << endl;
  QMCDriver*  qmc = new RNDMCOMP(w,psi,guide,h,hpool,ppool);
  qmc->setUpdateMode(PbyPUpdate);
  qmc->put(myNode);
  return qmc;
}
Ejemplo n.º 2
0
  QMCDriver* DMCFactory::create(MCWalkerConfiguration& w, TrialWaveFunction& psi
      , QMCHamiltonian& h, HamiltonianPool& hpool,WaveFunctionPool& ppool) 
  {
#ifdef QMC_CUDA
    if (GPU)
      return new DMCcuda (w, psi, h,ppool);
#endif
    app_log() << "Creating DMCMP for the qmc driver" << endl;
    QMCDriver*  qmc = new DMCOMP(w,psi,h,hpool,ppool);
    qmc->setUpdateMode(PbyPUpdate);
    qmc->put(myNode);
    return qmc;
  }