![]() |
QMCPACK
|
Public Types | |
using | SPOMap = SPOSet::SPOMap |
using | PSetMap = std::map< std::string, const std::unique_ptr< ParticleSet > > |
![]() | |
using | mpi_comm_type = Communicate::mpi_comm_type |
Public Member Functions | |
SPOSetBuilderFactory (Communicate *comm, ParticleSet &els, const PSetMap &psets) | |
constructor More... | |
~SPOSetBuilderFactory () | |
std::unique_ptr< SPOSetBuilder > | createSPOSetBuilder (xmlNodePtr rootNode) |
const SPOSet * | getSPOSet (const std::string &name) const |
returns a named sposet from the pool only use in serial portion of execution ie during initialization prior to threaded code More... | |
void | buildSPOSetCollection (xmlNodePtr cur) |
bool | empty () const |
void | addSPOSet (std::unique_ptr< SPOSet >) |
add an SPOSet to sposets map. More... | |
SPOMap && | exportSPOSets () |
![]() | |
MPIObjectBase (Communicate *c) | |
constructor with communicator More... | |
int | rank () const |
return the rank of the communicator More... | |
int | getGroupID () const |
return the group id of the communicator More... | |
Communicate * | getCommunicator () const |
return myComm More... | |
Communicate & | getCommRef () const |
return a TEMPORARY reference to Communicate More... | |
mpi_comm_type | getMPI () const |
return MPI communicator if one wants to use MPI directly More... | |
bool | is_manager () const |
return true if the rank == 0 More... | |
const std::string & | getName () const |
return the name More... | |
void | setName (const std::string &aname) |
Private Attributes | |
ParticleSet & | targetPtcl |
reference to the target particle More... | |
const PSetMap & | ptclPool |
reference to the particle pool More... | |
SPOMap | sposets |
list of all sposets created by the builders of this factory More... | |
Static Private Attributes | |
static std::string | basisset_tag = "basisset" |
Additional Inherited Members | |
![]() | |
Communicate * | myComm |
pointer to Communicate More... | |
std::string | ClassName |
class Name More... | |
std::string | myName |
name of the object More... | |
Definition at line 25 of file SPOSetBuilderFactory.h.
using PSetMap = std::map<std::string, const std::unique_ptr<ParticleSet> > |
Definition at line 29 of file SPOSetBuilderFactory.h.
using SPOMap = SPOSet::SPOMap |
Definition at line 28 of file SPOSetBuilderFactory.h.
SPOSetBuilderFactory | ( | Communicate * | comm, |
ParticleSet & | els, | ||
const PSetMap & | psets | ||
) |
constructor
comm | communicator |
els | reference to the electrons |
ions | reference to the ions |
els | reference to the electrons |
psi | reference to the wavefunction |
ions | reference to the ions |
Definition at line 63 of file SPOSetBuilderFactory.cpp.
References MPIObjectBase::ClassName.
~SPOSetBuilderFactory | ( | ) |
void addSPOSet | ( | std::unique_ptr< SPOSet > | spo | ) |
add an SPOSet to sposets map.
This is only used to handle legacy SPOSet input styles without using sposet_collection
Definition at line 216 of file SPOSetBuilderFactory.cpp.
References Communicate::barrier_and_abort(), MPIObjectBase::myComm, and SPOSetBuilderFactory::sposets.
Referenced by SlaterDetBuilder::buildComponent(), SPOSetBuilderFactory::buildSPOSetCollection(), and SlaterDetBuilder::putDeterminant().
void buildSPOSetCollection | ( | xmlNodePtr | cur | ) |
Definition at line 165 of file SPOSetBuilderFactory.cpp.
References OhmmsAttributeSet::add(), SPOSetBuilderFactory::addSPOSet(), qmcplusplus::app_summary(), Communicate::barrier_and_abort(), SPOSetBuilderFactory::createSPOSetBuilder(), MPIObjectBase::myComm, processChildren(), SPOSetBuilderFactory::ptclPool, OhmmsAttributeSet::put(), SPOSetScanner::put(), Communicate::rank(), SPOSetBuilderFactory::sposets, and SPOSetBuilderFactory::targetPtcl.
Referenced by WaveFunctionFactory::buildTWF().
std::unique_ptr< SPOSetBuilder > createSPOSetBuilder | ( | xmlNodePtr | rootNode | ) |
Definition at line 71 of file SPOSetBuilderFactory.cpp.
References OhmmsAttributeSet::add(), qmcplusplus::app_log(), Communicate::barrier_and_abort(), MPIObjectBase::ClassName, ReportEngine::error(), ReportEngine::flush(), ParticleSet::get(), ParticleSet::isSpinor(), qmcplusplus::lowerCase(), MPIObjectBase::myComm, SPOSetBuilderFactory::ptclPool, OhmmsAttributeSet::put(), and SPOSetBuilderFactory::targetPtcl.
Referenced by SlaterDetBuilder::buildComponent(), SPOSetBuilderFactory::buildSPOSetCollection(), qmcplusplus::test_C_diamond(), qmcplusplus::test_cartesian_ao(), qmcplusplus::TEST_CASE(), qmcplusplus::test_dirac_ao(), qmcplusplus::test_EtOH_mw(), qmcplusplus::test_HCN(), qmcplusplus::test_He(), qmcplusplus::test_He_mw(), qmcplusplus::test_lcao_spinor(), qmcplusplus::test_lcao_spinor_excited(), qmcplusplus::test_lcao_spinor_ion_derivs(), and qmcplusplus::test_Ne().
|
inline |
Definition at line 50 of file SPOSetBuilderFactory.h.
References SPOSetBuilderFactory::sposets.
Referenced by SlaterDetBuilder::buildComponent().
|
inline |
Definition at line 57 of file SPOSetBuilderFactory.h.
References SPOSetBuilderFactory::sposets.
Referenced by WaveFunctionFactory::buildTWF().
const SPOSet * getSPOSet | ( | const std::string & | name | ) | const |
returns a named sposet from the pool only use in serial portion of execution ie during initialization prior to threaded code
Definition at line 46 of file SPOSetBuilderFactory.cpp.
References SPOSetBuilderFactory::sposets.
Referenced by SlaterDetBuilder::buildComponent(), CompositeSPOSetBuilder::createSPOSetFromXML(), and SlaterDetBuilder::putDeterminant().
|
staticprivate |
Definition at line 69 of file SPOSetBuilderFactory.h.
|
private |
reference to the particle pool
Definition at line 64 of file SPOSetBuilderFactory.h.
Referenced by SPOSetBuilderFactory::buildSPOSetCollection(), and SPOSetBuilderFactory::createSPOSetBuilder().
|
private |
list of all sposets created by the builders of this factory
Definition at line 67 of file SPOSetBuilderFactory.h.
Referenced by SPOSetBuilderFactory::addSPOSet(), SPOSetBuilderFactory::buildSPOSetCollection(), SPOSetBuilderFactory::empty(), SPOSetBuilderFactory::exportSPOSets(), and SPOSetBuilderFactory::getSPOSet().
|
private |
reference to the target particle
Definition at line 61 of file SPOSetBuilderFactory.h.
Referenced by SPOSetBuilderFactory::buildSPOSetCollection(), and SPOSetBuilderFactory::createSPOSetBuilder().