![]() |
QMCPACK
|
Public Member Functions | |
XMLParticleParser (Particle_t &aptcl) | |
constructor More... | |
bool | readXML (xmlNodePtr cur) |
process xmlnode <particleset/> which contains everything about the particle set to initialize More... | |
bool | reset (xmlNodePtr cur) |
reset the properties of a particle set More... | |
Private Types | |
using | Particle_t = ParticleSet |
using | ParticleIndex = Particle_t::ParticleIndex |
using | ParticleScalar = Particle_t::ParticleScalar |
using | ParticlePos = Particle_t::ParticlePos |
using | ParticleTensor = Particle_t::ParticleTensor |
Private Member Functions | |
void | getPtclAttrib (xmlNodePtr cur, int in_offset, int copy_size, int out_offset) |
read the data of a particle attribute More... | |
void | checkGrouping (int nat, const std::vector< int > &nat_group) const |
Private Attributes | |
Particle_t & | ref_ |
AttribListType | ref_AttribList |
Additional Inherited Members | |
![]() | |
enum | { PA_IndexType = 0, PA_ScalarType, PA_StringType, PA_PositionType, PA_TensorType, PA_UnkownType } |
enumeraton for datatypes for particle attributes More... | |
![]() | |
static std::string | null_tag = "null" |
type names of particle attributes, e.g., posArray More... | |
static std::string | indextype_tag = "indexArray" |
the datatype tag for the index-type attribute More... | |
static std::string | scalartype_tag = "scalarArray" |
the datatype tag for the scalar-type attribute More... | |
static std::string | stringtype_tag = "stringArray" |
the datatype tag for the string-type attribute More... | |
static std::string | postype_tag = "posArray" |
the datatype tag for the pos-type attribute More... | |
static std::string | gradtype_tag = "gradArray" |
the datatype tag for the gradient-type attribute More... | |
static std::string | laptype_tag = "lapArray" |
the datatype tag for the laplacian-type attribute More... | |
static std::string | tensortype_tag = "tensorArray" |
the datatype tag for the tensor-type attribute More... | |
static std::string | xmoltype_tag = "xmolArray" |
the datatype tag for the xmol-type attribute More... | |
static std::string | position_tag = "position" |
names of particle attributes, e.g., position More... | |
static std::string | spins_tag = "spins" |
the name for spins attribute More... | |
static std::string | id_tag = "id" |
the name for id attribute More... | |
static std::string | ionid_tag = "ionid" |
the name for ionid attribute More... | |
static std::string | trajectory_tag = "trajectory" |
the name for trajectory attribute More... | |
static std::string | force_tag = "f" |
the name for force attribute More... | |
static std::string | velocity_tag = "v" |
the name for velocity attribute More... | |
static std::string | energy_tag = "e" |
the name for energy attribute More... | |
static std::string | sumbc_tag = "sumbc" |
the name for sumbc (accumulative boundary crossings) attribute More... | |
static std::string | root_tag = "particleset" |
xml element names More... | |
static std::string | attrib_tag = "attrib" |
the name of particle attribute node More... | |
static std::string | name_tag = "name" |
the attribute name of name More... | |
static std::string | datatype_tag = "datatype" |
the attribute name of datatype More... | |
static std::string | condition_tag = "condition" |
the attribute name of condition More... | |
static std::string | size_tag = "size" |
the attribute name of size More... | |
static std::string | format_tag = "format" |
the attribute name of format More... | |
static std::string | role_tag = "role" |
the attribute name of role More... | |
Definition at line 94 of file XMLParticleIO.h.
|
private |
Definition at line 96 of file XMLParticleIO.h.
|
private |
Definition at line 97 of file XMLParticleIO.h.
|
private |
Definition at line 99 of file XMLParticleIO.h.
|
private |
Definition at line 98 of file XMLParticleIO.h.
|
private |
Definition at line 100 of file XMLParticleIO.h.
XMLParticleParser | ( | Particle_t & | aptcl | ) |
constructor
aptcl | the particleset to be initialized |
Definition at line 80 of file XMLParticleIO.cpp.
References ParticleSet::createAttributeList(), XMLParticleParser::ref_, and XMLParticleParser::ref_AttribList.
|
private |
Definition at line 352 of file XMLParticleIO.cpp.
References app_debug, SpeciesSet::getSpeciesName(), ParticleSet::getSpeciesSet(), and XMLParticleParser::ref_.
Referenced by XMLParticleParser::readXML().
|
private |
read the data of a particle attribute
cur | the xmlnode |
in_offset | the location offset to read from XML element node body. |
copy_size | the number of particle attributes to be read |
out_offset | the current local count to which copy_size particle attributes are added. |
Definition at line 433 of file XMLParticleIO.cpp.
References OhmmsAttributeSet::add(), qmcplusplus::app_error(), ParticleTags::condition_tag, ParticleTags::datatype_tag, AttribListType::getAttribType(), AttribListType::getAttribute(), ParticleTags::ionid_tag, ParticleTags::PA_IndexType, ParticleTags::PA_PositionType, ParticleTags::PA_ScalarType, ParticleTags::PA_TensorType, OhmmsAttributeSet::put(), and XMLParticleParser::ref_AttribList.
Referenced by XMLParticleParser::readXML().
bool readXML | ( | xmlNodePtr | cur | ) |
process xmlnode <particleset/> which contains everything about the particle set to initialize
cur | the xmlnode to work on |
Definition at line 90 of file XMLParticleIO.cpp.
References OhmmsAttributeSet::add(), app_debug, qmcplusplus::app_log(), ParticleSet::applyBC(), ParticleTags::attrib_tag, XMLParticleParser::checkGrouping(), ParticleSet::convert2Cart(), ParticleSet::create(), ParticleSet::createSK(), ParticleTags::datatype_tag, ParticleSet::getLattice(), XMLParticleParser::getPtclAttrib(), ParticleSet::getSpeciesSet(), ParticleSet::getTotalNum(), getXMLAttributeValue(), ParticleTags::ionid_tag, qmcplusplus::Lattice, qmcplusplus::makeUniformRandom(), processChildren(), OhmmsAttributeSet::put(), putContent(), ParticleSet::R, XMLParticleParser::ref_, ParticleSet::resetGroups(), ParticleSet::setMapStorageToInput(), ParticleSet::setName(), qmcplusplus::setSpeciesProperty(), ParticleAttrib< T, Alloc >::setUnit(), ParticleSet::spins, and ParticleTags::stringtype_tag.
Referenced by qmcplusplus::create_CN_particlesets(), qmcplusplus::parse_electron_ion_pbc_z(), ParticleSetPool::put(), qmcplusplus::test_C_diamond(), qmcplusplus::TEST_CASE(), qmcplusplus::test_EtOH_mw(), and qmcplusplus::test_HCN().
bool reset | ( | xmlNodePtr | cur | ) |
reset the properties of a particle set
process xmlnode to reset the properties of a particle set
cur | current node |
This resets or adds new attributes to a particle set. It cannot modify the size of the particle set.
Definition at line 375 of file XMLParticleIO.cpp.
References OhmmsAttributeSet::add(), ParticleSet::getSpeciesSet(), OhmmsAttributeSet::put(), XMLParticleParser::ref_, and qmcplusplus::setSpeciesProperty().
|
private |
Definition at line 102 of file XMLParticleIO.h.
Referenced by XMLParticleParser::checkGrouping(), XMLParticleParser::readXML(), XMLParticleParser::reset(), and XMLParticleParser::XMLParticleParser().
|
private |
Definition at line 103 of file XMLParticleIO.h.
Referenced by XMLParticleParser::getPtclAttrib(), and XMLParticleParser::XMLParticleParser().