![]() |
QMCPACK
|
quantum variables of all the particles More...
Public Types | |
using | RealType = QMCTraits::RealType |
using | PosType = QMCTraits::PosType |
using | ParticlePos = PtclOnLatticeTraits::ParticlePos |
using | PosVectorSoa = VectorSoaContainer< RealType, QMCTraits::DIM > |
Public Member Functions | |
DynamicCoordinates (const DynamicCoordinateKind kind_in) | |
DynamicCoordinates (const DynamicCoordinates &)=default | |
DynamicCoordinates & | operator= (const DynamicCoordinates &)=delete |
DynamicCoordinateKind | getKind () const |
virtual | ~DynamicCoordinates ()=default |
virtual std::unique_ptr< DynamicCoordinates > | makeClone ()=0 |
virtual void | resize (size_t n)=0 |
resize internal storages based on the number of particles More... | |
virtual size_t | size () const =0 |
return the number of particles More... | |
virtual void | setAllParticlePos (const ParticlePos &R)=0 |
overwrite the positions of all the particles. More... | |
virtual void | setOneParticlePos (const PosType &pos, size_t iat)=0 |
overwrite the position of one the particle. More... | |
virtual void | mw_copyActivePos (const RefVectorWithLeader< DynamicCoordinates > &coords_list, size_t iat, const std::vector< PosType > &new_positions) const |
copy the active positions of particles with a uniform id in all the walkers to a single internal buffer. More... | |
virtual void | mw_acceptParticlePos (const RefVectorWithLeader< DynamicCoordinates > &coords_list, size_t iat, const std::vector< PosType > &new_positions, const std::vector< bool > &isAccepted) const =0 |
overwrite the positions of particles with a uniform id in all the walkers upon acceptance. More... | |
virtual const PosVectorSoa & | getAllParticlePos () const =0 |
all particle position accessor More... | |
virtual PosType | getOneParticlePos (size_t iat) const =0 |
one particle position accessor More... | |
virtual void | donePbyP () |
secure internal data consistency after p-by-p moves More... | |
virtual void | createResource (ResourceCollection &collection) const |
initialize a shared resource and hand it to a collection More... | |
virtual void | acquireResource (ResourceCollection &collection, const RefVectorWithLeader< DynamicCoordinates > &coords_list) const |
acquire a shared resource from a collection More... | |
virtual void | releaseResource (ResourceCollection &collection, const RefVectorWithLeader< DynamicCoordinates > &coords_list) const |
return a shared resource to a collection More... | |
Protected Attributes | |
const DynamicCoordinateKind | variable_kind_ |
type of dynamic coordinates More... | |
quantum variables of all the particles
Definition at line 37 of file DynamicCoordinates.h.
Definition at line 42 of file DynamicCoordinates.h.
using PosType = QMCTraits::PosType |
Definition at line 41 of file DynamicCoordinates.h.
using PosVectorSoa = VectorSoaContainer<RealType, QMCTraits::DIM> |
Definition at line 43 of file DynamicCoordinates.h.
using RealType = QMCTraits::RealType |
Definition at line 40 of file DynamicCoordinates.h.
|
inline |
Definition at line 45 of file DynamicCoordinates.h.
|
default |
|
virtualdefault |
|
inlinevirtual |
acquire a shared resource from a collection
Reimplemented in RealSpacePositionsOMPTarget.
Definition at line 102 of file DynamicCoordinates.h.
|
inlinevirtual |
initialize a shared resource and hand it to a collection
Reimplemented in RealSpacePositionsOMPTarget.
Definition at line 99 of file DynamicCoordinates.h.
|
inlinevirtual |
secure internal data consistency after p-by-p moves
Reimplemented in RealSpacePositionsOMPTarget.
Definition at line 96 of file DynamicCoordinates.h.
|
pure virtual |
all particle position accessor
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
Referenced by SoaDistanceTableAB< T, D, SC >::evaluate(), SoaDistanceTableAA< T, D, SC >::evaluate(), SoaDistanceTableAAOMPTarget< T, D, SC >::evaluate(), SoaDistanceTableABOMPTarget< T, D, SC >::evaluate(), SoaDistanceTableAB< T, D, SC >::move(), SoaDistanceTableAA< T, D, SC >::move(), SoaDistanceTableAAOMPTarget< T, D, SC >::move(), SoaDistanceTableABOMPTarget< T, D, SC >::move(), and qmcplusplus::TEST_CASE().
|
inline |
Definition at line 50 of file DynamicCoordinates.h.
References DynamicCoordinates::variable_kind_.
Referenced by HamiltonianFactory::addCoulombPotential(), RadialJastrowBuilder::buildComponent(), CoulombPBCAA::CoulombPBCAA(), RadialJastrowBuilder::createJ1(), and J1OrbitalSoA< FT >::J1OrbitalSoA().
|
pure virtual |
one particle position accessor
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
pure virtual |
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
pure virtual |
overwrite the positions of particles with a uniform id in all the walkers upon acceptance.
coords_list | a batch of DynamicCoordinates |
iat | paricle id, uniform across coords_list |
new_positions | proposed positions |
isAccepted | accept/reject info |
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
inlinevirtual |
copy the active positions of particles with a uniform id in all the walkers to a single internal buffer.
coords_list | a batch of DynamicCoordinates |
iat | paricle id, uniform across coords_list |
new_positions | proposed positions |
Reimplemented in RealSpacePositionsOMPTarget.
Definition at line 72 of file DynamicCoordinates.h.
References RefVectorWithLeader< T >::getLeader().
|
delete |
|
inlinevirtual |
return a shared resource to a collection
Reimplemented in RealSpacePositionsOMPTarget.
Definition at line 107 of file DynamicCoordinates.h.
|
pure virtual |
resize internal storages based on the number of particles
n | the number of particles |
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
pure virtual |
overwrite the positions of all the particles.
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
pure virtual |
overwrite the position of one the particle.
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
pure virtual |
return the number of particles
Implemented in RealSpacePositionsOMPTarget, and RealSpacePositions.
|
protected |
type of dynamic coordinates
Definition at line 113 of file DynamicCoordinates.h.
Referenced by DynamicCoordinates::getKind().