![]() |
QMCPACK
|
Base class for update methods for each step. More...
Public Types | |
using | Walker_t = MCWalkerConfiguration::Walker_t |
using | WalkerIter_t = MCWalkerConfiguration::iterator |
using | BranchEngineType = SimpleFixedNodeBranch |
using | mPosType = PosType |
using | mTensorType = TensorType |
![]() | |
enum | { DIM = OHMMS_DIM, DIM_VGL = OHMMS_DIM + 2 } |
using | QTBase = QMCTypes< OHMMS_PRECISION, DIM > |
using | QTFull = QMCTypes< OHMMS_PRECISION_FULL, DIM > |
using | RealType = QTBase::RealType |
using | ComplexType = QTBase::ComplexType |
using | ValueType = QTBase::ValueType |
using | PosType = QTBase::PosType |
using | GradType = QTBase::GradType |
using | TensorType = QTBase::TensorType |
using | IndexType = OHMMS_INDEXTYPE |
define other types More... | |
using | FullPrecRealType = QTFull::RealType |
using | FullPrecValueType = QTFull::ValueType |
using | PropertySetType = RecordNamedProperty< FullPrecRealType > |
define PropertyList_t More... | |
using | PtclGrpIndexes = std::vector< std::pair< int, int > > |
Public Member Functions | |
QMCUpdateBase (MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, RandomBase< FullPrecRealType > &rg) | |
Constructor. More... | |
QMCUpdateBase (MCWalkerConfiguration &w, TrialWaveFunction &psi, TrialWaveFunction &guide, QMCHamiltonian &h, RandomBase< FullPrecRealType > &rg) | |
Alt Constructor. More... | |
virtual | ~QMCUpdateBase () |
destructor More... | |
RealType | acceptRatio () const |
void | resetRun (BranchEngineType *brancher, EstimatorManagerBase *est, TraceManager *traces, const DriftModifierBase *driftmodifer) |
reset the QMCUpdateBase parameters More... | |
void | resetRun2 (BranchEngineType *brancher, EstimatorManagerBase *est, TraceManager *traces, WalkerLogCollector *wlog_collector_, const DriftModifierBase *driftmodifer) |
RealType | getTau () |
void | setTau (RealType t) |
RealType | getSpinMass () |
void | setSpinMass (RealType m) |
void | getLogs (std::vector< RealType > &logs) |
void | set_step (int step) |
void | startRun (int blocks, bool record) |
start a run More... | |
void | stopRun () |
stop a run More... | |
void | stopRun2 () |
void | startBlock (int steps) |
prepare to start a block More... | |
void | stopBlock (bool collectall=true) |
stop a block More... | |
void | setMultiplicity (WalkerIter_t it, WalkerIter_t it_end) |
set the multiplicity of the walkers to branch More... | |
void | setMultiplicity (Walker_t &awalker) const |
virtual void | initWalkersForPbyP (WalkerIter_t it, WalkerIter_t it_end) |
initialize Walker buffers for PbyP update More... | |
virtual void | initWalkers (WalkerIter_t it, WalkerIter_t it_end) |
initialize Walker for walker update More... | |
virtual bool | put (xmlNodePtr cur) |
process options More... | |
void | accumulate (WalkerIter_t it, WalkerIter_t it_end) |
virtual void | advanceWalkers (WalkerIter_t it, WalkerIter_t it_end, bool recompute) |
advance walkers executed at each step More... | |
virtual void | advanceWalker (Walker_t &thisWalker, bool recompute)=0 |
move a walker More... | |
virtual RealType | advanceWalkerForEE (Walker_t &w1, std::vector< PosType > &dR, std::vector< int > &iats, std::vector< int > &rs, std::vector< RealType > &ratios) |
int | RMC_checkIndex (int N, int NMax) |
void | RMC_checkWalkerBounds (WalkerIter_t &it, WalkerIter_t first, WalkerIter_t last) |
RealType | logBackwardGF (const ParticleSet::ParticlePos &displ) |
Public Attributes | |
int | nSubSteps |
number of steps per measurement More... | |
DriverDebugChecks | debug_checks_ = DriverDebugChecks::ALL_OFF |
determine additional checks for debugging purpose More... | |
std::string | debug_checks_str_ |
IndexType | MaxAge |
MaxAge>0 indicates branch is done. More... | |
IndexType | nAccept |
counter for number of moves accepted More... | |
IndexType | nReject |
counter for number of moves rejected More... | |
IndexType | nAllRejected |
Total number of the steps when all the particle moves are rejected. More... | |
IndexType | nNodeCrossing |
Total number of node crossings per block. More... | |
IndexType | NonLocalMoveAccepted |
Total numer of non-local moves accepted. More... | |
RealType | Tau |
timestep More... | |
RealType | spinMass |
spin mass More... | |
bool | UseDrift |
use Drift More... | |
RealType | csoffset |
normalization offset for cs type runs. More... | |
TraceManager * | Traces |
traces More... | |
WalkerLogCollector * | wlog_collector |
Protected Member Functions | |
RealType | getNodeCorrection (const ParticleSet::ParticleGradient &g, ParticleSet::ParticlePos &gscaled) |
evaluate the ratio of scaled velocity and velocity More... | |
QMCUpdateBase (const QMCUpdateBase &)=delete | |
copy constructor (disabled) More... | |
Static Protected Member Functions | |
static void | checkLogAndGL (ParticleSet &pset, TrialWaveFunction &twf, const std::string_view location) |
check logpsi and grad and lap against values computed from scratch More... | |
Protected Attributes | |
bool | UpdatePbyP |
update particle-by-particle More... | |
IndexType | NumPtcl |
number of particles More... | |
RealType | m_oneover2tau |
Time-step factor ![]() | |
RealType | m_sqrttau |
Time-step factor ![]() | |
RealType | m_tauovermass |
tau/mass More... | |
RealType | m_r2max |
maximum displacement^2 More... | |
MCWalkerConfiguration & | W |
walker ensemble More... | |
TrialWaveFunction & | Psi |
trial function More... | |
TrialWaveFunction & | Guide |
guide function More... | |
QMCHamiltonian & | H |
Hamiltonian. More... | |
RandomBase< FullPrecRealType > & | RandomGen |
random number generator More... | |
const BranchEngineType * | branchEngine |
branch engine, stateless reference to the one in QMCDriver More... | |
const DriftModifierBase * | DriftModifier |
drift modifer, stateless reference to the one in QMCDriver More... | |
EstimatorManagerBase * | Estimators |
estimator More... | |
ParameterSet | myParams |
parameters More... | |
std::vector< RealType > | MassInvS |
1/Mass per species More... | |
std::vector< RealType > | MassInvP |
1/Mass per particle More... | |
std::vector< RealType > | SqrtTauOverMass |
sqrt(tau/Mass) per particle More... | |
ParticleSet::ParticlePos | drift |
temporary storage for drift More... | |
ParticleSet::ParticlePos | deltaR |
temporary storage for random displacement More... | |
ParticleSet::ParticleScalar | deltaS |
temporart storage for spin displacement More... | |
ParticleSet::ParticleGradient | G |
storage for differential gradients for PbyP update More... | |
ParticleSet::ParticleGradient | dG |
ParticleSet::ParticleLaplacian | L |
storage for differential laplacians for PbyP update More... | |
ParticleSet::ParticleLaplacian | dL |
Private Member Functions | |
void | setDefaults () |
set default parameters More... | |
QMCUpdateBase & | operator= (const QMCUpdateBase &) |
Copy operator (disabled). More... | |
Private Attributes | |
NewTimer & | initWalkers_timer_ |
Base class for update methods for each step.
QMCUpdateBase provides the common functions to update all the walkers for each time step. Derived classes should implement advanceWalkers to complete a step.
Definition at line 41 of file QMCUpdateBase.h.
Definition at line 46 of file QMCUpdateBase.h.
Definition at line 51 of file QMCUpdateBase.h.
using mTensorType = TensorType |
Definition at line 52 of file QMCUpdateBase.h.
Definition at line 44 of file QMCUpdateBase.h.
Definition at line 45 of file QMCUpdateBase.h.
QMCUpdateBase | ( | MCWalkerConfiguration & | w, |
TrialWaveFunction & | psi, | ||
QMCHamiltonian & | h, | ||
RandomBase< FullPrecRealType > & | rg | ||
) |
Constructor.
Definition at line 56 of file QMCUpdateBase.cpp.
References QMCUpdateBase::setDefaults().
QMCUpdateBase | ( | MCWalkerConfiguration & | w, |
TrialWaveFunction & | psi, | ||
TrialWaveFunction & | guide, | ||
QMCHamiltonian & | h, | ||
RandomBase< FullPrecRealType > & | rg | ||
) |
Alt Constructor.
Constructor.
Definition at line 34 of file QMCUpdateBase.cpp.
References QMCUpdateBase::setDefaults().
|
virtual |
|
protecteddelete |
copy constructor (disabled)
|
inline |
Definition at line 90 of file QMCUpdateBase.h.
References QMCUpdateBase::nAccept, and QMCUpdateBase::nReject.
Referenced by QMCUpdateBase::stopBlock().
|
inline |
Definition at line 187 of file QMCUpdateBase.h.
References EstimatorManagerBase::accumulate(), QMCUpdateBase::Estimators, and QMCUpdateBase::W.
|
pure virtual |
move a walker
Implemented in CSVMCUpdateAllWithDrift, CSVMCUpdatePbyPWithDriftFast, DMCUpdateAllWithKill, FakeUpdate, RMCUpdatePbyPWithDrift, CSVMCUpdateAll, RMCUpdateAllWithDrift, CSVMCUpdatePbyP, DMCUpdatePbyPL2, DMCUpdatePbyPWithRejectionFast, SOVMCUpdatePbyP, VMCUpdatePbyP, VMCUpdateAll, DMCUpdateAllWithRejection, SODMCUpdatePbyPWithRejectionFast, and SOVMCUpdateAll.
Referenced by QMCUpdateBase::advanceWalkers().
|
inlinevirtual |
Definition at line 199 of file QMCUpdateBase.h.
|
virtual |
advance walkers executed at each step
Derived classes implement how to move walkers and accept/reject moves.
Reimplemented in RMCUpdatePbyPWithDrift, and RMCUpdateAllWithDrift.
Definition at line 359 of file QMCUpdateBase.cpp.
References QMCUpdateBase::advanceWalker().
Referenced by qmcplusplus::TEST_CASE().
|
staticprotected |
check logpsi and grad and lap against values computed from scratch
Definition at line 292 of file QMCUpdateBase.cpp.
References qmcplusplus::abs(), qmcplusplus::dot(), qmcplusplus::exp(), qmcplusplus::pset, qmcplusplus::sqrt(), and qmcplusplus::twf.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), and DMCUpdatePbyPWithRejectionFast::advanceWalker().
|
inline |
Definition at line 140 of file QMCUpdateBase.h.
References TrialWaveFunction::getLogs(), and QMCUpdateBase::Psi.
|
protected |
evaluate the ratio of scaled velocity and velocity
g | gradient |
gscaled | scaled gradient |
Definition at line 282 of file QMCUpdateBase.cpp.
References QMCUpdateBase::MassInvP, qmcplusplus::setScaledDriftPbyPandNodeCorr(), and QMCUpdateBase::Tau.
|
inline |
|
inline |
|
virtual |
initialize Walker for walker update
Reimplemented in RMCUpdatePbyPWithDrift, and RMCUpdateAllWithDrift.
Definition at line 217 of file QMCUpdateBase.cpp.
References QMCUpdateBase::drift, QMCHamiltonian::evaluate(), TrialWaveFunction::evaluateLog(), ParticleSet::G, TrialWaveFunction::getPhase(), QMCUpdateBase::H, QMCUpdateBase::initWalkers_timer_, ParticleSet::L, QMCUpdateBase::MassInvP, QMCUpdateBase::Psi, ParticleSet::R, QMCHamiltonian::saveProperty(), qmcplusplus::setScaledDriftPbyPandNodeCorr(), QMCUpdateBase::Tau, ParticleSet::update(), QMCUpdateBase::UpdatePbyP, QMCUpdateBase::W, and qmcplusplus::walker.
|
virtual |
initialize Walker buffers for PbyP update
Reimplemented in RMCUpdatePbyPWithDrift.
Definition at line 242 of file QMCUpdateBase.cpp.
References PooledMemory< T_scalar, Alloc >::allocate(), qmcplusplus::app_log(), QMCHamiltonian::auxHevaluate(), PooledMemory< T_scalar, Alloc >::clear(), TrialWaveFunction::copyFromBuffer(), Walker< t_traits, p_traits >::DataSet, QMCHamiltonian::evaluate(), TrialWaveFunction::evaluateLog(), TrialWaveFunction::getPhase(), Walker< t_traits, p_traits >::getPropertyBase(), ParticleSet::getTotalNum(), QMCUpdateBase::H, QMCUpdateBase::initWalkers_timer_, qmcplusplus::print_mem(), ParticleSet::Properties, Walker< t_traits, p_traits >::Properties, QMCUpdateBase::Psi, ParticleSet::R, Walker< t_traits, p_traits >::R, Walker< t_traits, p_traits >::registerData(), TrialWaveFunction::registerData(), Walker< t_traits, p_traits >::resetProperty(), PooledMemory< T_scalar, Alloc >::rewind(), QMCHamiltonian::saveProperty(), ParticleSet::saveWalker(), PooledMemory< T_scalar, Alloc >::size(), ParticleSet::spins, Walker< t_traits, p_traits >::spins, ParticleSet::update(), TrialWaveFunction::updateBuffer(), QMCUpdateBase::UpdatePbyP, QMCUpdateBase::W, and Walker< t_traits, p_traits >::Weight.
|
inline |
Definition at line 234 of file QMCUpdateBase.h.
References qmcplusplus::dot(), ParticleSet::getTotalNum(), QMCUpdateBase::SqrtTauOverMass, and QMCUpdateBase::W.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), and CSVMCUpdateAllWithDrift::advanceWalker().
|
inlineprivate |
|
virtual |
process options
Reimplemented in RMCUpdateAllWithDrift, and RMCUpdatePbyPWithDrift.
Definition at line 102 of file QMCUpdateBase.cpp.
References qmcplusplus::ALL_OFF, qmcplusplus::CHECKGL_AFTER_LOAD, qmcplusplus::CHECKGL_AFTER_MOVES, qmcplusplus::CHECKGL_AFTER_TMOVE, QMCUpdateBase::debug_checks_, QMCUpdateBase::debug_checks_str_, QMCUpdateBase::H, QMCUpdateBase::myParams, ParameterSet::put(), qmcplusplus::Units::time::s, and QMCHamiltonian::setNonLocalMoves().
Referenced by RMCUpdateAllWithDrift::put(), RMCUpdatePbyPWithDrift::put(), and qmcplusplus::TEST_CASE().
void resetRun | ( | BranchEngineType * | brancher, |
EstimatorManagerBase * | est, | ||
TraceManager * | traces, | ||
const DriftModifierBase * | driftmodifer | ||
) |
reset the QMCUpdateBase parameters
brancher | engine which handles branching |
Update time-step variables to move walkers
Definition at line 130 of file QMCUpdateBase.cpp.
References QMCUpdateBase::branchEngine, QMCUpdateBase::deltaR, QMCUpdateBase::deltaS, QMCUpdateBase::dG, QMCUpdateBase::dL, QMCUpdateBase::drift, QMCUpdateBase::DriftModifier, QMCUpdateBase::Estimators, QMCUpdateBase::G, ParticleSet::getLattice(), SimpleFixedNodeBranch::getTau(), ParticleSet::getTotalNum(), QMCUpdateBase::L, QMCUpdateBase::m_oneover2tau, QMCUpdateBase::m_r2max, QMCUpdateBase::m_sqrttau, QMCUpdateBase::m_tauovermass, QMCUpdateBase::MassInvP, QMCUpdateBase::MassInvS, QMCUpdateBase::NumPtcl, qmcplusplus::sqrt(), QMCUpdateBase::SqrtTauOverMass, QMCUpdateBase::Tau, QMCUpdateBase::Traces, QMCUpdateBase::UpdatePbyP, and QMCUpdateBase::W.
Referenced by QMCUpdateBase::resetRun2(), and qmcplusplus::TEST_CASE().
void resetRun2 | ( | BranchEngineType * | brancher, |
EstimatorManagerBase * | est, | ||
TraceManager * | traces, | ||
WalkerLogCollector * | wlog_collector_, | ||
const DriftModifierBase * | driftmodifer | ||
) |
Definition at line 120 of file QMCUpdateBase.cpp.
References QMCUpdateBase::resetRun(), and QMCUpdateBase::wlog_collector.
|
inline |
|
inline |
Definition at line 226 of file QMCUpdateBase.h.
|
inline |
Definition at line 142 of file QMCUpdateBase.h.
References ParticleSet::current_step, and QMCUpdateBase::W.
|
private |
set default parameters
Definition at line 79 of file QMCUpdateBase.cpp.
References ParameterSet::add(), SpeciesSet::addAttribute(), QMCUpdateBase::debug_checks_str_, ParticleSet::first(), ParticleSet::getSpeciesSet(), ParticleSet::getTotalNum(), ParticleSet::groups(), ParticleSet::last(), QMCUpdateBase::m_r2max, QMCUpdateBase::MassInvP, QMCUpdateBase::MassInvS, QMCUpdateBase::MaxAge, QMCUpdateBase::myParams, QMCUpdateBase::nSubSteps, QMCUpdateBase::NumPtcl, QMCUpdateBase::UpdatePbyP, QMCUpdateBase::UseDrift, and QMCUpdateBase::W.
Referenced by QMCUpdateBase::QMCUpdateBase().
void setMultiplicity | ( | WalkerIter_t | it, |
WalkerIter_t | it_end | ||
) |
set the multiplicity of the walkers to branch
Definition at line 345 of file QMCUpdateBase.cpp.
References QMCUpdateBase::MaxAge, omptarget::min(), QMCUpdateBase::RandomGen, and qmcplusplus::walker.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), and DMCUpdateAllWithKill::advanceWalker().
|
inline |
Definition at line 163 of file QMCUpdateBase.h.
References Walker< t_traits, p_traits >::Age, BLAS::cone, QMCUpdateBase::MaxAge, omptarget::min(), Walker< t_traits, p_traits >::Multiplicity, QMCUpdateBase::RandomGen, and Walker< t_traits, p_traits >::Weight.
|
inline |
Definition at line 138 of file QMCUpdateBase.h.
References qmcplusplus::Units::distance::m, and QMCUpdateBase::spinMass.
|
inline |
Definition at line 120 of file QMCUpdateBase.h.
References QMCUpdateBase::m_oneover2tau, QMCUpdateBase::m_sqrttau, QMCUpdateBase::m_tauovermass, QMCUpdateBase::MassInvS, qmcplusplus::sqrt(), and QMCUpdateBase::Tau.
void startBlock | ( | int | steps | ) |
prepare to start a block
steps | number of steps within the block |
Definition at line 194 of file QMCUpdateBase.cpp.
References QMCUpdateBase::Estimators, QMCUpdateBase::nAccept, QMCUpdateBase::nAllRejected, QMCUpdateBase::nNodeCrossing, QMCUpdateBase::NonLocalMoveAccepted, QMCUpdateBase::nReject, WalkerLogCollector::startBlock(), EstimatorManagerBase::startBlock(), TraceManager::startBlock(), QMCUpdateBase::Traces, and QMCUpdateBase::wlog_collector.
Referenced by qmcplusplus::TEST_CASE().
void startRun | ( | int | blocks, |
bool | record | ||
) |
start a run
Definition at line 166 of file QMCUpdateBase.cpp.
References APP_ABORT, QMCUpdateBase::Estimators, QMCUpdateBase::H, QMCHamiltonian::initialize_traces(), TraceManager::initialize_traces(), EstimatorManagerBase::start(), QMCUpdateBase::Traces, and QMCUpdateBase::W.
void stopBlock | ( | bool | collectall = true | ) |
stop a block
Definition at line 209 of file QMCUpdateBase.cpp.
References QMCUpdateBase::acceptRatio(), QMCUpdateBase::Estimators, EstimatorManagerBase::stopBlock(), TraceManager::stopBlock(), and QMCUpdateBase::Traces.
void stopRun | ( | ) |
stop a run
Definition at line 182 of file QMCUpdateBase.cpp.
References QMCUpdateBase::Estimators, and EstimatorManagerBase::stop().
void stopRun2 | ( | ) |
Definition at line 186 of file QMCUpdateBase.cpp.
References QMCHamiltonian::finalize_traces(), TraceManager::finalize_traces(), QMCUpdateBase::H, and QMCUpdateBase::Traces.
|
protected |
branch engine, stateless reference to the one in QMCDriver
Definition at line 274 of file QMCUpdateBase.h.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), and QMCUpdateBase::resetRun().
RealType csoffset |
normalization offset for cs type runs.
Definition at line 206 of file QMCUpdateBase.h.
DriverDebugChecks debug_checks_ = DriverDebugChecks::ALL_OFF |
determine additional checks for debugging purpose
Definition at line 58 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), and QMCUpdateBase::put().
std::string debug_checks_str_ |
Definition at line 59 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::put(), and QMCUpdateBase::setDefaults().
|
protected |
temporary storage for random displacement
Definition at line 290 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), and QMCUpdateBase::resetRun().
|
protected |
temporart storage for spin displacement
Definition at line 292 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), and QMCUpdateBase::resetRun().
|
protected |
Definition at line 294 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::resetRun(), and CSUpdateBase::resizeWorkSpace().
|
protected |
Definition at line 296 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::resetRun().
|
protected |
temporary storage for drift
Definition at line 288 of file QMCUpdateBase.h.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), and QMCUpdateBase::resetRun().
|
protected |
drift modifer, stateless reference to the one in QMCDriver
Definition at line 276 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), and QMCUpdateBase::resetRun().
|
protected |
estimator
Definition at line 278 of file QMCUpdateBase.h.
Referenced by RMCUpdateAllWithDrift::accumulate(), RMCUpdatePbyPWithDrift::accumulate(), QMCUpdateBase::accumulate(), QMCUpdateBase::resetRun(), QMCUpdateBase::startBlock(), QMCUpdateBase::startRun(), QMCUpdateBase::stopBlock(), and QMCUpdateBase::stopRun().
|
protected |
storage for differential gradients for PbyP update
Definition at line 294 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::resetRun().
|
protected |
guide function
Definition at line 268 of file QMCUpdateBase.h.
|
protected |
Hamiltonian.
Definition at line 270 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), RMCUpdatePbyPWithDrift::initWalkersForPbyP(), QMCUpdateBase::initWalkersForPbyP(), QMCUpdateBase::put(), QMCUpdateBase::startRun(), and QMCUpdateBase::stopRun2().
|
private |
Definition at line 317 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::initWalkers(), and QMCUpdateBase::initWalkersForPbyP().
|
protected |
storage for differential laplacians for PbyP update
Definition at line 296 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::resetRun().
|
protected |
Time-step factor .
Definition at line 256 of file QMCUpdateBase.h.
Referenced by RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setTau().
|
protected |
maximum displacement^2
Definition at line 262 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setDefaults().
|
protected |
Time-step factor .
Definition at line 258 of file QMCUpdateBase.h.
Referenced by RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setTau().
|
protected |
tau/mass
Definition at line 260 of file QMCUpdateBase.h.
Referenced by RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setTau().
|
protected |
1/Mass per particle
Definition at line 284 of file QMCUpdateBase.h.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), QMCUpdateBase::getNodeCorrection(), RMCUpdateAllWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setDefaults().
|
protected |
1/Mass per species
Definition at line 282 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), QMCUpdateBase::resetRun(), QMCUpdateBase::setDefaults(), and QMCUpdateBase::setTau().
IndexType MaxAge |
MaxAge>0 indicates branch is done.
Definition at line 61 of file QMCUpdateBase.h.
Referenced by RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), QMCUpdateBase::setDefaults(), and QMCUpdateBase::setMultiplicity().
|
protected |
parameters
Definition at line 280 of file QMCUpdateBase.h.
Referenced by CSUpdateBase::CSUpdateBase(), QMCUpdateBase::put(), and QMCUpdateBase::setDefaults().
IndexType nAccept |
counter for number of moves accepted
Definition at line 63 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::acceptRatio(), SOVMCUpdateAll::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::startBlock(), and qmcplusplus::TEST_CASE().
IndexType nAllRejected |
Total number of the steps when all the particle moves are rejected.
Definition at line 67 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), and QMCUpdateBase::startBlock().
IndexType nNodeCrossing |
Total number of node crossings per block.
Definition at line 69 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), and QMCUpdateBase::startBlock().
IndexType NonLocalMoveAccepted |
Total numer of non-local moves accepted.
Definition at line 71 of file QMCUpdateBase.h.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), and QMCUpdateBase::startBlock().
IndexType nReject |
counter for number of moves rejected
Definition at line 65 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::acceptRatio(), SOVMCUpdateAll::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::startBlock(), and qmcplusplus::TEST_CASE().
int nSubSteps |
number of steps per measurement
Definition at line 56 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), and QMCUpdateBase::setDefaults().
|
protected |
number of particles
Definition at line 254 of file QMCUpdateBase.h.
Referenced by QMCUpdateBase::resetRun(), and QMCUpdateBase::setDefaults().
|
protected |
trial function
Definition at line 266 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::getLogs(), RMCUpdateAllWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), RMCUpdatePbyPWithDrift::initWalkersForPbyP(), and QMCUpdateBase::initWalkersForPbyP().
|
protected |
random number generator
Definition at line 272 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), and QMCUpdateBase::setMultiplicity().
RealType spinMass |
spin mass
Definition at line 75 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), QMCUpdateBase::getSpinMass(), and QMCUpdateBase::setSpinMass().
|
protected |
sqrt(tau/Mass) per particle
Definition at line 286 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), QMCUpdateBase::logBackwardGF(), and QMCUpdateBase::resetRun().
RealType Tau |
timestep
Definition at line 73 of file QMCUpdateBase.h.
Referenced by DMCUpdateAllWithRejection::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdateAll::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), QMCUpdateBase::getNodeCorrection(), QMCUpdateBase::getTau(), RMCUpdateAllWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), QMCUpdateBase::resetRun(), and QMCUpdateBase::setTau().
TraceManager* Traces |
traces
Definition at line 247 of file QMCUpdateBase.h.
Referenced by SODMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), QMCUpdateBase::resetRun(), QMCUpdateBase::startBlock(), QMCUpdateBase::startRun(), QMCUpdateBase::stopBlock(), and QMCUpdateBase::stopRun2().
|
protected |
update particle-by-particle
Definition at line 252 of file QMCUpdateBase.h.
Referenced by CSVMCUpdateAll::CSVMCUpdateAll(), CSVMCUpdateAllWithDrift::CSVMCUpdateAllWithDrift(), DMCUpdateAllWithKill::DMCUpdateAllWithKill(), DMCUpdateAllWithRejection::DMCUpdateAllWithRejection(), CSUpdateBase::initCSWalkersForPbyP(), QMCUpdateBase::initWalkers(), RMCUpdatePbyPWithDrift::initWalkersForPbyP(), QMCUpdateBase::initWalkersForPbyP(), QMCUpdateBase::resetRun(), QMCUpdateBase::setDefaults(), SOVMCUpdateAll::SOVMCUpdateAll(), and VMCUpdateAll::VMCUpdateAll().
bool UseDrift |
use Drift
Definition at line 77 of file QMCUpdateBase.h.
Referenced by SOVMCUpdateAll::advanceWalker(), VMCUpdateAll::advanceWalker(), VMCUpdatePbyP::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), and QMCUpdateBase::setDefaults().
|
protected |
walker ensemble
Definition at line 264 of file QMCUpdateBase.h.
Referenced by RMCUpdateAllWithDrift::accumulate(), RMCUpdatePbyPWithDrift::accumulate(), QMCUpdateBase::accumulate(), SOVMCUpdateAll::advanceWalker(), SODMCUpdatePbyPWithRejectionFast::advanceWalker(), DMCUpdateAllWithRejection::advanceWalker(), VMCUpdateAll::advanceWalker(), VMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPWithRejectionFast::advanceWalker(), SOVMCUpdatePbyP::advanceWalker(), DMCUpdatePbyPL2::advanceWalker(), CSVMCUpdatePbyP::advanceWalker(), CSVMCUpdateAll::advanceWalker(), DMCUpdateAllWithKill::advanceWalker(), CSVMCUpdateAllWithDrift::advanceWalker(), RMCUpdatePbyPWithDrift::advanceWalkersRMC(), RMCUpdateAllWithDrift::advanceWalkersRMC(), RMCUpdatePbyPWithDrift::advanceWalkersVMC(), RMCUpdateAllWithDrift::advanceWalkersVMC(), CSUpdateBase::initCSWalkers(), CSUpdateBase::initCSWalkersForPbyP(), RMCUpdateAllWithDrift::initWalkers(), RMCUpdatePbyPWithDrift::initWalkers(), QMCUpdateBase::initWalkers(), RMCUpdatePbyPWithDrift::initWalkersForPbyP(), QMCUpdateBase::initWalkersForPbyP(), QMCUpdateBase::logBackwardGF(), QMCUpdateBase::resetRun(), QMCUpdateBase::set_step(), QMCUpdateBase::setDefaults(), QMCUpdateBase::startRun(), and CSUpdateBase::updateCSWalkers().
WalkerLogCollector* wlog_collector |
Definition at line 248 of file QMCUpdateBase.h.
Referenced by DMCUpdatePbyPWithRejectionFast::advanceWalker(), VMCUpdatePbyP::advanceWalker(), QMCUpdateBase::resetRun2(), and QMCUpdateBase::startBlock().