25 #ifndef QMCPLUSPLUS_REPTILE_H 26 #define QMCPLUSPLUS_REPTILE_H 35 class MCWalkerConfiguration;
190 app_log() <<
"********PRINT REPTILE STATE*********\n";
193 app_log() <<
"BeadIndex\tWrapIndex\tEnergy\tAction[0]\tAction[1]\tAction[2]\t\n";
194 for (
int i = 0; i <
nbeads; i++)
200 app_log() <<
"POSITIONS===============:\n";
201 for (
int i = 0; i <
nbeads; i++)
205 app_log() <<
"BEAD #" << i <<
" tau = " <<
tau * i << std::endl;
208 app_log() <<
"GVECS===============:\n";
209 for (
int i = 0; i <
nbeads; i++)
213 app_log() <<
"BEAD #" << i <<
" tau = " <<
tau * i << std::endl;
216 app_log() <<
"************************************\n";
234 else if (nbead >=
nbeads - 1)
245 interpR =
getBead(nbead).
R + beadfrac * dR;
254 for (
IndexType i = 0; i < nbeads_new; i++)
257 return new_reptile_coords;
262 if (rept.size() ==
nbeads)
264 for (
int i = 0; i <
nbeads; i++)
273 for (
int i = 0; i <
nbeads; i++)
ReptileConfig_t getReptileSlicePositions(RealType tau, RealType beta)
PropertyContainer_t Properties
scalar properties of a walker
A set of walkers that are to be advanced by Metropolis Monte Carlo.
void setReptileSlicePositions(ReptileConfig_t &rept)
helper functions for EinsplineSetBuilder
Walker_t & operator[](IndexType i)
PropertyContainer_t Properties
properties of the current walker
QTBase::RealType RealType
typename p_traits::ParticlePos ParticlePos
array of particles
RealType getDirectionalAction(Walker_t &walker, IndexType d, IndexType nPsi=0)
int addProperty(const std::string &pname)
void setHead(Walker_t &overwrite)
RealType getTransProb(ParticleSet &W, IndexType d, RealType nPsi=0)
IndexType wrapIndex(IndexType repindex)
Attaches a unit to a Vector for IO.
QMCTraits::IndexType IndexType
std::vector< IndexType > TransProb
void setReptileSlicePositions(Walker_t::ParticlePos R)
Specialized paritlce class for atomistic simulations.
WalkerList_t::iterator iterator
FIX: a type alias of iterator for an object should not be for just one of many objects it holds...
Walker_t::ParticlePos linearInterp(RealType t)
std::vector< IndexType > Action
IndexType getBeadIndex(IndexType i)
void saveTransProb(ParticleSet &W, IndexType d, RealType val, IndexType nPsi=0)
RealType getLinkAction(Walker_t &new_walker, Walker_t &old_walker, IndexType d, IndexType nPsi=0)
void setDirection(IndexType dir)
MCWalkerConfiguration & w
OHMMS_INDEXTYPE IndexType
define other types
Walker_t & getBead(IndexType i)
WalkerConfigurations::Walker_t Walker_t
Reptile(MCWalkerConfiguration &W, WalkerIter_t start, WalkerIter_t end)
Indexes
an enum denoting index of physical properties
Walker_t & getWalker(IndexType i)
void saveAction(Walker_t &walker, IndexType d, RealType val, IndexType nPsi=0)
std::vector< Walker_t::ParticlePos > ReptileConfig_t
MCWalkerConfiguration::iterator WalkerIter_t
void saveTransProb(Walker_t &walker, IndexType d, RealType val, IndexType nPsi=0)
void setBead(Walker_t &walker, IndexType i)
A container class to represent a walker.
ParticlePos R
The configuration vector (3N-dimensional vector to store the positions of all the particles for a sin...
RealType getTransProb(Walker_t &walker, IndexType d, RealType nPsi=0)