31 elec.
R[0] = {0.0, 1.0, 0.0};
32 elec.
R[1] = {0.4, 0.3, 0.0};
39 tspecies(eChargeIdx, upIdx) = -1.0;
40 tspecies(massIdx, upIdx) = 1.0;
52 const double val = density_estimator.
evaluate(elec);
53 CHECK(val == Approx(0.0));
56 TEST_CASE(
"Density Estimator evaluate exception",
"[hamiltonian]")
65 CHECK_THROWS_AS(density_estimator.
evaluate(elec), std::invalid_argument);
void setName(const std::string &aname)
Walker< QMCTraits, PtclOnLatticeTraits > Walker_t
walker type
int addSpecies(const std::string &aname)
When a name species does not exist, add a new species.
helper functions for EinsplineSetBuilder
std::string getClassName() const override
return class name
TEST_CASE("complex_helper", "[type_traits]")
void update(bool skipSK=false)
update the internal data
int addAttribute(const std::string &aname)
for a new attribute, allocate the data, !More often used to get the index of a species ...
Specialized paritlce class for atomistic simulations.
REQUIRE(std::filesystem::exists(filename))
virtual void setHistories(Walker_t &ThisWalker)
void resetTargetParticleSet(ParticleSet &P) override
Reset the data with the target ParticleSet.
SpeciesSet & getSpeciesSet()
retrun the SpeciesSet of this particle set
void create(const std::vector< int > &agroup)
create grouped particles
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
Custom container for set of attributes for a set of species.
A container class to represent a walker.
Return_t evaluate(ParticleSet &P) override
Evaluate the local energy contribution of this component.