24 #include <type_traits> 37 const char* particles = R
"( 38 <particleset name="ion0" size="1"> 40 <parameter name="charge">2</parameter> 42 <attrib name="position" datatype="posArray"> 64 REQUIRE_THROWS_AS(pp.
getWalkerSet(
"does_not_exist"), std::runtime_error);
67 ps2->setName(
"particle_set_2");
73 std::stringstream out;
87 const char* particles = R
"( 89 <particleset name="ion0" size="1"> 91 <parameter name="charge">2</parameter> 93 <attrib name="position" datatype="posArray"> 97 <particleset name="elec" random="yes" randomsrc="ion0" spinor="yes"> 98 <group name="u" size="4"> 99 <parameter name="charge">-1</parameter> 110 xmlNodePtr part_ion = xmlFirstElementChild(root);
112 pp.
put(xmlNextElementSibling(part_ion));
122 REQUIRE(elec->spins.size() == 4);
129 REQUIRE(elec->spins[0] != 0.0);
139 const char*
lattice = R
"(<parameter name="lattice"> </parameter>)"; MCWalkerConfiguration * getWalkerSet(const std::string &pname)
get a named MCWalkerConfiguration
class that handles xmlDoc
A set of walkers that are to be advanced by Metropolis Monte Carlo.
helper functions for EinsplineSetBuilder
bool put(xmlNodePtr cur)
process an xml element
TEST_CASE("complex_helper", "[type_traits]")
void addParticleSet(std::unique_ptr< ParticleSet > &&p)
add a ParticleSet* to the pool with its ownership transferred ParticleSet built outside the ParticleS...
Communicate * Controller
Global Communicator for a process.
Wrapping information on parallelism.
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
bool get(std::ostream &os) const
Specialized paritlce class for atomistic simulations.
REQUIRE(std::filesystem::exists(filename))
ParticleSet * getParticleSet(const std::string &pname)
get a named ParticleSet
Manage a collection of ParticleSet objects.
bool readSimulationCellXML(xmlNodePtr cur)
initialize the supercell shared by all the particle sets
bool parseFromString(const std::string_view data)
void randomize()
randomize a particleset particleset/='yes' && particleset exists
const auto & getSimulationCell() const
get simulation cell
Declaration of ParticleSetPool.