src/QMCDrivers/QMCDriverNew.cpp
/** Add walkers to the end of the ensemble of walkers.
 * @param nwalkers number of walkers to add
 *
 */
Add walkers to the end of the ensemble of walkers.
@param nwalkers number of walkers to add
Add walkers to the end of the ensemble of walkers . @param nwalkers number of walkers to add
void QMCDriverNew::addWalkers(int nwalkers, const ParticleAttrib<TinyVector<QMCTraits::RealType, 3>>& positions)
{
  population_.createWalkers(nwalkers);
}
void QMCDriverNew :: addWalkers ( int nwalkers , const ParticleAttrib < TinyVector < QMCTraits :: RealType , 3 > > & positions ) { population_ . createWalkers ( nwalkers ) ; }
Add walkers to the end of the ensemble of walkers.
Add walkers to the end of the ensemble of walkers .
// else if (nwalkers < 0) // { //   W.destroyWalkers(-nwalkers); //   app_log() << "  Removed " << -nwalkers << " walkers. Current number of walkers =" << W.getActiveWalkers() //             << std::endl; // } // else // { //   app_log() << "  Using the current " << W.getActiveWalkers() << " walkers." << std::endl; // } // setWalkerOffsets(); // ////update the global number of walkers // ////int nw=W.getActiveWalkers(); // ////myComm->allreduce(nw);