27 std::ostringstream section_name;
28 section_name <<
"Cartesian AO ordering";
30 SECTION(section_name.str())
35 auto elec_ptr = std::make_unique<ParticleSet>(simulation_cell);
36 auto& elec(*elec_ptr);
37 std::vector<int> agroup(2);
46 tspecies(massIdx, upIdx) = 1.0;
48 auto ions_ptr = std::make_unique<ParticleSet>(simulation_cell);
49 auto& ions(*ions_ptr);
66 particle_set_map.emplace(elec_ptr->getName(), std::move(elec_ptr));
67 particle_set_map.emplace(ions_ptr->getName(), std::move(ions_ptr));
78 auto sposet = bb.createSPOSet(slater_base[0]);
85 elec.makeMove(0, newpos);
87 sposet->evaluateValue(elec, 0, values);
90 CHECK(values[0] == Approx(0.48224527310155046).epsilon(1E-6));
96 std::ostringstream section_name;
97 section_name <<
"Dirac AO ordering";
99 SECTION(section_name.str())
104 auto elec_ptr = std::make_unique<ParticleSet>(simulation_cell);
105 auto& elec(*elec_ptr);
106 std::vector<int> agroup(2);
115 tspecies(massIdx, upIdx) = 1.0;
117 auto ions_ptr = std::make_unique<ParticleSet>(simulation_cell);
118 auto& ions(*ions_ptr);
119 ions.setName(
"ion0");
123 int hIdx =
ispecies.addSpecies(
"H");
135 particle_set_map.emplace(elec_ptr->getName(), std::move(elec_ptr));
136 particle_set_map.emplace(ions_ptr->getName(), std::move(ions_ptr));
148 auto sposet = bb.createSPOSet(slater_base[0]);
155 elec.makeMove(0, newpos);
157 sposet->evaluateValue(elec, 0, values);
160 CHECK(values[0] == Approx(0.35953790416302006).epsilon(1E-6));
class that handles xmlDoc
int addSpecies(const std::string &aname)
When a name species does not exist, add a new species.
helper functions for EinsplineSetBuilder
xmlXPathContextPtr getXPathContext()
TEST_CASE("complex_helper", "[type_traits]")
Communicate * Controller
Global Communicator for a process.
int addAttribute(const std::string &aname)
for a new attribute, allocate the data, !More often used to get the index of a species ...
std::map< std::string, const std::unique_ptr< ParticleSet > > PSetMap
class to handle xmlXPathObject
Wrapping information on parallelism.
Decalaration of One-Dimesional grids.
REQUIRE(std::filesystem::exists(filename))
OrbitalSetTraits< ValueType >::ValueVector ValueVector
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
bool parse(const std::string &fname)
std::unique_ptr< SPOSetBuilder > createSPOSetBuilder(xmlNodePtr rootNode)
Custom container for set of attributes for a set of species.