src/QMCDrivers/SimpleFixedNodeBranch.cpp
/** Calculates and saves various action components, also does necessary updates for running averages.
 *
 */
Calculates and saves various action components, also does necessary updates for running averages.
Calculates and saves various action components also does necessary updates for running averages .
void SimpleFixedNodeBranch::reset()
{
  if (WalkerController)
  {
    BranchMode.set(B_USETAUEFF, sParam[USETAUOPT] == "no");
    if (BranchMode[B_DMCSTAGE]) 
      ToDoSteps = iParam[B_ENERGYUPDATEINTERVAL] - 1;
    else
      ToDoSteps = iParam[B_WARMUPSTEPS];
    if (BranchMode[B_POPCONTROL])
    {
      logN = Feedback*std::log(static_cast<RealType>(iParam[B_TARGETWALKERS]));
      logN = std::log(static_cast<FullPrecRealType>(iParam[B_TARGETWALKERS]));
      if (vParam[B_FEEDBACK] == 0.0)
        vParam[B_FEEDBACK] = 1.0;
    }
    else
    {
      may set Eref to a safe value
      if(EnergyHistory.count()<5) Eref -= vParam[EnergyWindowIndex];
      vParam[B_ETRIAL]   = vParam[B_EREF];
      vParam[B_FEEDBACK] = 0.0;
      logN               = 0.0;
    }
           vParam(abranch.vParam)
    WalkerController->start();
  }
  if (BranchMode[B_RMC])
  {
     BranchMode.set(B_USETAUEFF,sParam[USETAUOPT]=="no");
    if (BranchMode[B_RMCSTAGE]) 
      ToDoSteps = iParam[B_ENERGYUPDATEINTERVAL] - 1;
    else
      ToDoSteps = iParam[B_WARMUPSTEPS];
  }
}
void SimpleFixedNodeBranch :: reset ( ) { if ( WalkerController ) { BranchMode . set ( B_USETAUEFF , sParam [ USETAUOPT ] == " " ) ; if ( BranchMode [ B_DMCSTAGE ] ) ToDoSteps = iParam [ B_ENERGYUPDATEINTERVAL ] - 1 ; else ToDoSteps = iParam [ B_WARMUPSTEPS ] ; if ( BranchMode [ B_POPCONTROL ] ) { logN = std :: log ( static_cast < FullPrecRealType > ( iParam [ B_TARGETWALKERS ] ) ) ; if ( vParam [ B_FEEDBACK ] == 0.0 ) vParam [ B_FEEDBACK ] = 1.0 ; } else { vParam [ B_ETRIAL ] = vParam [ B_EREF ] ; vParam [ B_FEEDBACK ] = 0.0 ; logN = 0.0 ; } WalkerController -> start ( ) ; } if ( BranchMode [ B_RMC ] ) { if ( BranchMode [ B_RMCSTAGE ] ) ToDoSteps = iParam [ B_ENERGYUPDATEINTERVAL ] - 1 ; else ToDoSteps = iParam [ B_WARMUPSTEPS ] ; } }
Calculates and saves various action components, also does necessary updates for running averages.
Calculates and saves various action components also does necessary updates for running averages .
//use effective time step of BranchInterval*Tau //Feed = 1.0/(static_cast<RealType>(NumGeneration*BranchInterval)*Tau); //logN = Feed*std::log(static_cast<RealType>(Nideal)); //JNKIM passive //BranchMode.set(B_DMC,1);//set DMC //BranchMode.set(B_DMCSTAGE,0);//set warmup //this is to compare the time step errors // //logN = Feedback*std::log(static_cast<RealType>(iParam[B_TARGETWALKERS])); //may set Eref to a safe value //if(EnergyHistory.count()<5) Eref -= vParam[EnergyWindowIndex]; //       vParam(abranch.vParam) //this is to compare the time step errors // BranchMode.set(B_USETAUEFF,sParam[USETAUOPT]=="no"); //