29 :
MPIObjectBase(c), runtime_options_(runtime_options), primary_psi_(nullptr), ptcl_pool_(pset_pool)
39 std::string target(
"e"), role(
"extra");
41 pAttrib.
add(target,
"target");
42 pAttrib.
add(target,
"ref");
43 pAttrib.
add(role,
"role");
60 throw std::runtime_error(
" " + psi->getName() +
" exists. Cannot be added.");
62 app_log() <<
" Adding " << psi->getName() <<
" TrialWaveFunction to the pool" << std::endl;
66 myPool.emplace(psi->getName(), std::move(psi));
76 return (*it).second->getNode();
Base class for any object which needs to know about a MPI communicator.
helper functions for EinsplineSetBuilder
TrialWaveFunction * primary_psi_
pointer to the primary TrialWaveFunction
bool put(xmlNodePtr cur)
assign attributes to the set
xmlNodePtr getWaveFunctionNode(const std::string &id)
return a xmlNode containing Jastrow
std::string myName
name of the object
void addFactory(std::unique_ptr< TrialWaveFunction > psi, bool primary)
add a TrialWaveFunction* to myPool
const RuntimeOptions & runtime_options_
top-level runtime options from project data information
Wrapping information on parallelism.
Specialized paritlce class for atomistic simulations.
std::unique_ptr< TrialWaveFunction > buildTWF(xmlNodePtr cur, const RuntimeOptions &runtime_options)
read from xmlNode
ParticleSet * getParticleSet(const std::string &pname)
get a named ParticleSet
Communicate * myComm
pointer to Communicate
Declaration of WaveFunctionPool.
class to handle a set of attributes of an xmlNode
Manage a collection of ParticleSet objects.
Factory class to build a many-body wavefunction.
ParticleSetPool & ptcl_pool_
pointer to ParticleSetPool
std::string ClassName
class Name
WaveFunctionPool(const RuntimeOptions &runtime_options, ParticleSetPool &pset_pool, Communicate *c, const char *aname="wavefunction")
const PoolType & getPool() const
get the Pool object
void barrier_and_abort(const std::string &msg) const
void add(PDT &aparam, const std::string &aname, std::vector< PDT > candidate_values={}, TagStatus status=TagStatus::OPTIONAL)
add a new attribute
PoolType myPool
storage of WaveFunctionFactory
Declaration of ParticleSetPool.