23 #ifndef QMCPLUSPLUS_MCWALKERCONFIGURATION_H 24 #define QMCPLUSPLUS_MCWALKERCONFIGURATION_H 35 class HDFWalkerOutput;
91 void resize(
int numWalkers,
int numPtcls);
138 void loadEnsemble(std::vector<MCWalkerConfiguration*>& others,
bool doclean =
true);
DynamicCoordinateKind
enumerator for DynamicCoordinates kinds
Stores particle configurations for later use in DMC and wavefunction optimization.
Walker< QMCTraits, PtclOnLatticeTraits > Walker_t
walker type
SampleStack & getSampleStack()
void saveEnsemble()
save the position of current walkers to SampleStack
void sample(iterator it, RealType tauinv)
make random moves for all the walkers
A set of walkers that are to be advanced by Metropolis Monte Carlo.
ReptileList_t ReptileList
a collection of reptiles contained in MCWalkerConfiguration.
helper functions for EinsplineSetBuilder
Declaration of a WalkerConfigurations.
void resizeWalkerHistories()
resize Walker::PropertyHistory and Walker::PHindex:
QTBase::RealType RealType
Writes a set of walker configurations to an HDF5 file.
A set of light weight walkers that are carried between driver sections and restart.
int getMaxSamples() const
Transitional forwarding methods.
size_t getNumSamples() const
int first(int igroup) const
return the first index of a group i
std::vector< std::unique_ptr< T > > UPtrVector
MCWalkerConfiguration(const SimulationCell &simulation_cell, const DynamicCoordinateKind kind=DynamicCoordinateKind::DC_POS)
default constructor
move all the active walkers
ConstantSizeMatrix< FullPrecRealType, std::allocator< FullPrecRealType > > PropertyContainer_t
typedef for the property container, fixed size
void loadEnsemble()
load SampleStack data to the current list of walker configurations
void clearEnsemble()
clear the ensemble
void clear()
clear the walker_list_ without destroying them
void setPolymer(MultiChain *chain)
int getParticleNum() const
return the number of particles per walker
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...
size_type size() const
return the current size
bool ReadyForPbyP
true if the buffer is ready for particle-by-particle updates
WalkerList_t::const_iterator const_iterator
const_iterator of Walker container
void setNumSamples(int n)
set the number of max samples
int last(int igroup) const
return the last index of a group i
RealType getLocalEnergy() const
return LocalEnergy
void resize(int numWalkers, int numPtcls)
clean up the walker list and make a new list
static bool dumpEnsemble(std::vector< MCWalkerConfiguration *> &others, HDFWalkerOutput &out, int np, int nBlock)
dump Samples to a file
void setLocalEnergy(RealType e)
set LocalEnergy
void loadSample(ParticleSet &pset, size_t iw) const
load a single sample from SampleStack
const SampleStack & getSampleStack() const
void createWalkers(int numWalkers)
create numWalkers Walkers
UPtrVector< Reptile > ReptileList_t
std::vector< std::unique_ptr< Walker_t > > WalkerList_t
container type of Walkers
MultiChain * getPolymer()
A container class to represent a walker.
void resetWalkerProperty(int ncopy=1)
reset the Property container of all the walkers
int UpdateMode
update-mode index