28 auto qp = std::make_unique<ParticleSet>(simulation_cell);
29 std::vector<int> agroup(2, 1);
32 qp->R[0] = {1.0, 2.0, 3.0};
33 qp->R[1] = {0.0, 1.1, 2.2};
39 tspecies(massIdx, upIdx) = 1.0;
40 tspecies(massIdx, downIdx) = 1.0;
45 particle_set_map.emplace(
"e", std::move(qp));
49 const char* wavefunction_xml = R
"(<wavefunction> 50 <jastrow type="Two-Body" name="J2" function="bspline" print="yes" gpu="no"> 51 <correlation speciesA="u" speciesB="d" size="8" cutoff="10.0"> 52 <coefficients id="ud" type="Array"> 53 0.5954603818 0.5062051797 0.3746940461 0.2521010502 0.1440163317 0.07796688253 54 0.03804420551 0.01449320872 65 auto twf_ptr = wff.
buildTWF(root, runtime_options);
70 auto& j2_base = twf_ptr->getOrbitals()[0];
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
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 ...
Wrapping information on parallelism.
std::unique_ptr< TrialWaveFunction > buildTWF(xmlNodePtr cur, const RuntimeOptions &runtime_options)
read from xmlNode
REQUIRE(std::filesystem::exists(filename))
Factory class to build a many-body wavefunction.
std::map< std::string, const std::unique_ptr< ParticleSet > > PSetMap
bool parseFromString(const std::string_view data)
Declaration of a WaveFunctionFactory.
Custom container for set of attributes for a set of species.