![]() |
QMCPACK
|
base class for the real SPOSet builder More...
Public Types | |
using | indices_t = std::vector< int > |
using | energies_t = std::vector< RealType > |
![]() | |
enum | { DIM = OHMMS_DIM, DIM_VGL = OHMMS_DIM + 2 } |
using | QTBase = QMCTypes< OHMMS_PRECISION, DIM > |
using | QTFull = QMCTypes< OHMMS_PRECISION_FULL, DIM > |
using | RealType = QTBase::RealType |
using | ComplexType = QTBase::ComplexType |
using | ValueType = QTBase::ValueType |
using | PosType = QTBase::PosType |
using | GradType = QTBase::GradType |
using | TensorType = QTBase::TensorType |
using | IndexType = OHMMS_INDEXTYPE |
define other types More... | |
using | FullPrecRealType = QTFull::RealType |
using | FullPrecValueType = QTFull::ValueType |
using | PropertySetType = RecordNamedProperty< FullPrecRealType > |
define PropertyList_t More... | |
using | PtclGrpIndexes = std::vector< std::pair< int, int > > |
![]() | |
using | mpi_comm_type = Communicate::mpi_comm_type |
Public Member Functions | |
SPOSetBuilder (const std::string &type_name, Communicate *comm) | |
virtual | ~SPOSetBuilder () |
void | reserve_states (int nsets=1) |
reserve space for states (usually only one set, multiple for e.g. spin dependent einspline) More... | |
void | modify_states (int index=0) |
allow modification of state information More... | |
void | clear_states (int index=0) |
clear state information More... | |
std::unique_ptr< SPOSet > | createSPOSet (xmlNodePtr cur) |
create an sposet from xml and save the resulting SPOSet More... | |
std::unique_ptr< SPOSet > | createRotatedSPOSet (xmlNodePtr cur) |
create orbital rotation transformation from xml and save the resulting SPOSet More... | |
const std::string & | getTypeName () const |
![]() | |
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) |
Public Attributes | |
bool | legacy |
whether implementation conforms only to legacy standard More... | |
std::vector< std::unique_ptr< SPOSetInfo > > | states |
state info of all possible states available in the basis More... | |
Protected Member Functions | |
virtual std::unique_ptr< SPOSet > | createSPOSetFromXML (xmlNodePtr cur)=0 |
create an sposet from xml (legacy) More... | |
virtual std::unique_ptr< SPOSet > | createSPOSet (xmlNodePtr cur, SPOSetInputInfo &input_info) |
create an sposet from a general xml request More... | |
Protected Attributes | |
const std::string | type_name_ |
type name of the SPO objects built by this builder. More... | |
![]() | |
Communicate * | myComm |
pointer to Communicate More... | |
std::string | ClassName |
class Name More... | |
std::string | myName |
name of the object More... | |
base class for the real SPOSet builder
Definition at line 47 of file SPOSetBuilder.h.
using energies_t = std::vector<RealType> |
Definition at line 51 of file SPOSetBuilder.h.
using indices_t = std::vector<int> |
Definition at line 50 of file SPOSetBuilder.h.
SPOSetBuilder | ( | const std::string & | type_name, |
Communicate * | comm | ||
) |
Definition at line 22 of file SPOSetBuilder.cpp.
References SPOSetBuilder::reserve_states().
|
inlinevirtual |
Definition at line 60 of file SPOSetBuilder.h.
|
inline |
clear state information
Definition at line 69 of file SPOSetBuilder.h.
References SPOSetBuilder::states.
Referenced by BsplineReader::create_spline_set(), and SHOSetBuilder::update_basis_states().
std::unique_ptr< SPOSet > createRotatedSPOSet | ( | xmlNodePtr | cur | ) |
create orbital rotation transformation from xml and save the resulting SPOSet
Definition at line 127 of file SPOSetBuilder.cpp.
References OhmmsAttributeSet::add(), Communicate::barrier_and_abort(), SPOSetBuilder::createSPOSet(), MPIObjectBase::myComm, processChildren(), OhmmsAttributeSet::put(), and putContent().
std::unique_ptr< SPOSet > createSPOSet | ( | xmlNodePtr | cur | ) |
create an sposet from xml and save the resulting SPOSet
Definition at line 45 of file SPOSetBuilder.cpp.
References OhmmsAttributeSet::add(), qmcplusplus::app_log(), qmcplusplus::app_summary(), qmcplusplus::app_warning(), Communicate::barrier_and_abort(), MPIObjectBase::ClassName, SPOSetBuilder::createSPOSetFromXML(), SPOSetBuilder::legacy, SPOSetInputInfo::legacy_request, MPIObjectBase::myComm, OhmmsAttributeSet::put(), putContent(), and SPOSetBuilder::type_name_.
Referenced by SPOSetBuilder::createRotatedSPOSet(), and qmcplusplus::TEST_CASE().
|
protectedvirtual |
create an sposet from a general xml request
Reimplemented in EinsplineSetBuilder, CompositeSPOSetBuilder, and SHOSetBuilder.
Definition at line 38 of file SPOSetBuilder.cpp.
References Communicate::barrier_and_abort(), and MPIObjectBase::myComm.
|
protectedpure virtual |
create an sposet from xml (legacy)
Implemented in EinsplineSetBuilder, CompositeSPOSetBuilder, PWOrbitalSetBuilder, SHOSetBuilder, EinsplineSpinorSetBuilder, LCAOrbitalBuilder, LCAOSpinorBuilder, and FreeOrbitalBuilder.
Referenced by SPOSetBuilder::createSPOSet().
|
inline |
Definition at line 77 of file SPOSetBuilder.h.
References SPOSetBuilder::type_name_.
|
inline |
allow modification of state information
Definition at line 66 of file SPOSetBuilder.h.
References SPOSetBuilder::states.
void reserve_states | ( | int | nsets = 1 | ) |
reserve space for states (usually only one set, multiple for e.g. spin dependent einspline)
Definition at line 29 of file SPOSetBuilder.cpp.
References qmcplusplus::Units::time::s, and SPOSetBuilder::states.
Referenced by SPOSetBuilder::SPOSetBuilder().
bool legacy |
whether implementation conforms only to legacy standard
Definition at line 54 of file SPOSetBuilder.h.
Referenced by SPOSetBuilder::createSPOSet(), and SHOSetBuilder::SHOSetBuilder().
std::vector<std::unique_ptr<SPOSetInfo> > states |
state info of all possible states available in the basis
Definition at line 57 of file SPOSetBuilder.h.
Referenced by SPOSetBuilder::clear_states(), BsplineReader::create_spline_set(), SHOSetBuilder::createSPOSet(), EinsplineSpinorSetBuilder::createSPOSetFromXML(), EinsplineSetBuilder::EinsplineSetBuilder(), SPOSetBuilder::modify_states(), SPOSetBuilder::reserve_states(), and SHOSetBuilder::update_basis_states().
|
protected |
type name of the SPO objects built by this builder.
Definition at line 87 of file SPOSetBuilder.h.
Referenced by SPOSetBuilder::createSPOSet(), and SPOSetBuilder::getTypeName().