![]() |
QMCPACK
|
OrbitalBuilder for Slater determinants in PW basis. More...
Public Member Functions | |
PWOrbitalSetBuilder (const ParticleSet &p, Communicate *comm, xmlNodePtr cur) | |
constructor More... | |
~PWOrbitalSetBuilder () override | |
std::unique_ptr< SPOSet > | createSPOSetFromXML (xmlNodePtr cur) override |
create an sposet from xml and save the resulting SPOSet More... | |
![]() | |
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) |
Private Types | |
using | SPOSetType = PWRealOrbitalSet |
Private Member Functions | |
bool | getH5 (xmlNodePtr cur, const char *aname) |
bool | createPWBasis () |
The read routine - get data from XML and H5. More... | |
std::unique_ptr< SPOSet > | createPW (xmlNodePtr cur, const std::string &objname, int spinIndex) |
Private Attributes | |
const ParticleSet & | targetPtcl |
target particle set More... | |
xmlNodePtr | rootNode {nullptr} |
xml node for determinantset More... | |
PosType | TwistAngle |
input twist angle More... | |
std::unique_ptr< PWParameterSet > | myParam |
parameter set More... | |
std::unique_ptr< PWBasis > | myBasisSet |
hdf_archive | hfile |
hdf5 handler to clean up More... | |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
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... | |
![]() | |
virtual std::unique_ptr< SPOSet > | createSPOSet (xmlNodePtr cur, SPOSetInputInfo &input_info) |
create an sposet from a general xml request More... | |
![]() | |
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... | |
OrbitalBuilder for Slater determinants in PW basis.
Definition at line 37 of file PWOrbitalSetBuilder.h.
|
private |
Definition at line 43 of file PWOrbitalSetBuilder.h.
PWOrbitalSetBuilder | ( | const ParticleSet & | p, |
Communicate * | comm, | ||
xmlNodePtr | cur | ||
) |
constructor
Definition at line 28 of file PWOrbitalSetBuilder.cpp.
References qmcplusplus::comm.
|
overridedefault |
|
private |
Definition at line 134 of file PWOrbitalSetBuilder.cpp.
References Communicate::abort(), OhmmsAttributeSet::add(), qmcplusplus::app_error(), qmcplusplus::app_log(), qmcplusplus::app_warning(), OHMMS::Controller, copy(), ParticleSet::first(), PWOrbitalSetBuilder::hfile, ParticleSet::last(), PWOrbitalSetBuilder::myBasisSet, PWOrbitalSetBuilder::myParam, hdf_archive::pop(), hdf_archive::push(), OhmmsAttributeSet::put(), putContent(), hdf_archive::read(), and PWOrbitalSetBuilder::targetPtcl.
Referenced by PWOrbitalSetBuilder::createSPOSetFromXML().
|
private |
The read routine - get data from XML and H5.
Process it and build orbitals.
Definition at line 88 of file PWOrbitalSetBuilder.cpp.
References Communicate::abort(), qmcplusplus::app_error(), qmcplusplus::app_log(), OHMMS::Controller, ParticleSet::getLattice(), ParticleSet::getTotalNum(), PWOrbitalSetBuilder::hfile, ParticleSet::last(), PWOrbitalSetBuilder::myBasisSet, PWOrbitalSetBuilder::myParam, hdf_archive::read(), PWOrbitalSetBuilder::targetPtcl, and PWOrbitalSetBuilder::TwistAngle.
|
overridevirtual |
create an sposet from xml and save the resulting SPOSet
Implements SPOSetBuilder.
Definition at line 67 of file PWOrbitalSetBuilder.cpp.
References OhmmsAttributeSet::add(), PWOrbitalSetBuilder::createPW(), and OhmmsAttributeSet::put().
|
private |
Definition at line 360 of file PWOrbitalSetBuilder.cpp.
References Communicate::abort(), qmcplusplus::app_error(), OHMMS::Controller, getXMLAttributeValue(), PWOrbitalSetBuilder::hfile, PWOrbitalSetBuilder::myParam, hdf_archive::open(), and PWOrbitalSetBuilder::rootNode.
|
private |
hdf5 handler to clean up
Definition at line 57 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::createPW(), PWOrbitalSetBuilder::createPWBasis(), and PWOrbitalSetBuilder::getH5().
|
private |
Definition at line 55 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::createPW(), and PWOrbitalSetBuilder::createPWBasis().
|
private |
parameter set
Definition at line 53 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::createPW(), PWOrbitalSetBuilder::createPWBasis(), and PWOrbitalSetBuilder::getH5().
|
private |
xml node for determinantset
Definition at line 49 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::getH5().
|
private |
target particle set
Definition at line 47 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::createPW(), and PWOrbitalSetBuilder::createPWBasis().
|
private |
input twist angle
Definition at line 51 of file PWOrbitalSetBuilder.h.
Referenced by PWOrbitalSetBuilder::createPWBasis().