18 #ifndef QMCPLUSPLUS_PARTICLESETPOOL_H 19 #define QMCPLUSPLUS_PARTICLESETPOOL_H 37 using PoolType = std::map<std::string, const std::unique_ptr<ParticleSet>>;
50 bool put(xmlNodePtr cur);
51 bool get(std::ostream& os)
const;
MCWalkerConfiguration * getWalkerSet(const std::string &pname)
get a named MCWalkerConfiguration
void setSimulationCell(const SimulationCell &simulation_cell)
set simulation cell
class that handles xmlDoc
ParticleSetPool(Communicate *c, const char *aname="particleset")
constructor
A set of walkers that are to be advanced by Metropolis Monte Carlo.
Base class for any object which needs to know about a MPI communicator.
void reset()
reset is used to initialize and evaluate the distance tables
helper functions for EinsplineSetBuilder
bool put(xmlNodePtr cur)
process an xml element
void addParticleSet(std::unique_ptr< ParticleSet > &&p)
add a ParticleSet* to the pool with its ownership transferred ParticleSet built outside the ParticleS...
declaration of MPIObjectBase
std::map< std::string, const std::unique_ptr< ParticleSet > > PoolType
void output_particleset_info(Libxml2Document &doc, xmlNodePtr root)
Declaration of OhmmsElementBase and define xml-related macros.
ParticleSetPool & operator=(const ParticleSetPool &)=delete
Wrapping information on parallelism.
std::unique_ptr< SimulationCell > simulation_cell_
global simulation cell
Specialized paritlce class for atomistic simulations.
ParticleSet * getParticleSet(const std::string &pname)
get a named ParticleSet
Manage a collection of ParticleSet objects.
std::vector< xmlNodePtr > randomize_nodes
xml node for random initialization.
bool readSimulationCellXML(xmlNodePtr cur)
initialize the supercell shared by all the particle sets
void randomize()
randomize a particleset particleset/='yes' && particleset exists
const PoolType & getPool() const
get the Pool object
Declaration of a MCWalkerConfiguration.
bool empty() const
return true, if the pool is empty
const auto & getSimulationCell() const
get simulation cell
PoolType myPool
List of ParticleSet owned.