예제 #1
0
void HFDBHE_smoothed_phy::addCorrection(QMCHamiltonian& targetH)
{
  HFDBHE_smoothed_aux* auxTerm = new HFDBHE_smoothed_aux(this);
  string auxName = myName+"_aux";
  targetH.addOperator(auxTerm, auxName, false);
}
예제 #2
0
void HFDBHE_smoothed_phy::add2Hamiltonian(ParticleSet& qp, TrialWaveFunction& psi, QMCHamiltonian& targetH)
{
  HFDBHE_smoothed_phy* myClone = new HFDBHE_smoothed_phy(qp);
  targetH.addOperator(myClone, myName, true);
  myClone->addCorrection(targetH);
}