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); }
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); }