![]() |
QMCPACK
|
type for returning the walker and its elements from MCPopulation More...
Public Member Functions | |
WalkerElementsRef (Walker< QMCTraits, PtclOnLatticeTraits > &walker_in, ParticleSet &pset_in, TrialWaveFunction &twf_in) | |
to allow use of emplace back More... | |
Public Attributes | |
Walker< QMCTraits, PtclOnLatticeTraits > & | walker |
ParticleSet & | pset |
TrialWaveFunction & | twf |
type for returning the walker and its elements from MCPopulation
have no expectations for the validity of the references in this structure past the context it was returned in. It should not be returned by a call in a crowd or threaded context.
-luo's "fat" walker
We need this if we want to "copyFrom" the whole fat walker when it comes off the line i.e. mpi. Insuring the "fat" walker is valid at the earliest possible point seems less likely to end in tears then just calling copyFrom random other places (hopefully) in time, in order to not access an invalid walker element.
Definition at line 36 of file WalkerElementsRef.h.
|
inline |
to allow use of emplace back
Definition at line 40 of file WalkerElementsRef.h.
ParticleSet& pset |
Definition at line 43 of file WalkerElementsRef.h.
TrialWaveFunction& twf |
Definition at line 44 of file WalkerElementsRef.h.
Walker<QMCTraits, PtclOnLatticeTraits>& walker |
Definition at line 41 of file WalkerElementsRef.h.
Referenced by WalkerControl::branch().