26 auto& ions = *pset_pool.getParticleSet(
"i");
27 auto& elecs = *pset_pool.getParticleSet(
"e");
29 elecs.R[0] = {1, 2, 3};
30 elecs.R[1] = {2, 1, 3};
31 elecs.R[2] = {3, 1, 2};
32 elecs.R[3] = {3, 2, 1};
37 elecs.addTable(elecs);
50 vp_Ni_clone.
makeMoves(elecs_clone, 3, {{0.1, 0.2, 0.3}, {0.2, 0.1, 0.3}, {0.3, 0.1, 0.2}});
64 vp_Ni_clone.
makeMoves(elecs_clone, 3, {{0.1, 0.2, 0.3}, {0.3, 0.1, 0.2}, {0.2, 0.1, 0.3}});
65 CHECK(Approx(vp_Ni_clone.
R[2][0]) == 3.2);
66 CHECK(Approx(vp_Ni_clone.
R[2][1]) == 2.1);
67 CHECK(Approx(vp_Ni_clone.
R[2][2]) == 1.3);
const std::vector< DistRow > & getDistances() const
return full table distances
helper functions for EinsplineSetBuilder
void createResource(ResourceCollection &collection) const
initialize a shared resource and hand it to a collection
TEST_CASE("complex_helper", "[type_traits]")
A ParticleSet that handles virtual moves of a selected particle of a given physical ParticleSet Virtu...
void makeMoves(const ParticleSet &refp, int jel, const std::vector< PosType > &deltaV, bool sphere=false, int iat=-1)
move virtual particles to new postions and update distance tables
void update(bool skipSK=false)
update the internal data
Communicate * Controller
Global Communicator for a process.
A proxy class to the quantum ParticleSet.
const DistanceTableAB & getDistTableAB(int table_ID) const
get a distance table by table_ID and dyanmic_cast to DistanceTableAB
static ParticleSetPool make_NiO_a4(Communicate *c)
Specialized paritlce class for atomistic simulations.
REQUIRE(std::filesystem::exists(filename))
AB type of DistanceTable containing storage.
CHECK(log_values[0]==ComplexApprox(std::complex< double >{ 5.603777579195571, -6.1586603331188225 }))
handles acquire/release resource by the consumer (RefVectorWithLeader type).