34 std::ostringstream section_name;
35 section_name <<
"Carbon diamond off gamma unit test: ";
37 SECTION(section_name.str())
42 bool okay =
doc.
parse(
"C_diamond-twist-third.structure.xml");
48 lattice.R = {3.37316115, 3.37316115, 0.0, 0.0, 3.37316115, 3.37316115, 3.37316115, 0.0, 3.37316115};
52 auto ions_ptr = std::make_unique<ParticleSet>(simulation_cell);
53 auto& ions(*ions_ptr);
56 REQUIRE(particleset_ion.size() == 1);
57 parse_ions.
readXML(particleset_ion[0]);
63 auto elec_ptr = std::make_unique<ParticleSet>(simulation_cell);
64 auto& elec(*elec_ptr);
67 REQUIRE(particleset_elec.size() == 1);
68 parse_elec.
readXML(particleset_elec[0]);
80 okay = doc2.
parse(
"C_diamond-twist-third.wfj.xml");
82 xmlNodePtr root2 = doc2.
getRoot();
85 particle_set_map.emplace(elec_ptr->getName(), std::move(elec_ptr));
86 particle_set_map.emplace(ions_ptr->getName(), std::move(ions_ptr));
94 auto& bb = *sposet_builder_ptr;
97 auto sposet = bb.createSPOSet(slater_base[0]);
105 elec.R[0] = {-10.0, -10.0, -10.0};
107 sposet->evaluateValue(elec, 0, values);
215 elec.R[0] = {-6.666667, -6.666667, -6.666667};
217 sposet->evaluateValue(elec, 0, values);
325 elec.R[0] = {-3.333334, -3.333334, -3.333334};
327 sposet->evaluateValue(elec, 0, values);
435 elec.R[0] = {-9.999999992515995e-07, -9.999999992515995e-07, -9.999999992515995e-07};
437 sposet->evaluateValue(elec, 0, values);
545 elec.R[0] = {3.3333320000000004, 3.3333320000000004, 3.3333320000000004};
547 sposet->evaluateValue(elec, 0, values);
655 elec.R[0] = {6.666665000000002, 6.666665000000002, 6.666665000000002};
657 sposet->evaluateValue(elec, 0, values);
765 elec.R[0] = {9.999998000000001, 9.999998000000001, 9.999998000000001};
767 sposet->evaluateValue(elec, 0, values);
a class that defines a supercell in D-dimensional Euclean space.
class that handles xmlDoc
helper functions for EinsplineSetBuilder
xmlXPathContextPtr getXPathContext()
TEST_CASE("complex_helper", "[type_traits]")
Communicate * Controller
Global Communicator for a process.
std::map< std::string, const std::unique_ptr< ParticleSet > > PSetMap
class to handle xmlXPathObject
Wrapping information on parallelism.
CrystalLattice< OHMMS_PRECISION, OHMMS_DIM > lattice
Decalaration of One-Dimesional grids.
float imag(const float &c)
imaginary part of a scalar. Cannot be replaced by std::imag due to AFQMC specific needs...
REQUIRE(std::filesystem::exists(filename))
OrbitalSetTraits< ValueType >::ValueVector ValueVector
bool readXML(xmlNodePtr cur)
process xmlnode <particleset/> which contains everything about the particle set to initialize ...
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)