QMCPACK
WalkerElementsRef Struct Reference

type for returning the walker and its elements from MCPopulation More...

+ Collaboration diagram for WalkerElementsRef:

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
 
ParticleSetpset
 
TrialWaveFunctiontwf
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WalkerElementsRef()

WalkerElementsRef ( Walker< QMCTraits, PtclOnLatticeTraits > &  walker_in,
ParticleSet pset_in,
TrialWaveFunction twf_in 
)
inline

to allow use of emplace back

Definition at line 40 of file WalkerElementsRef.h.

40 : walker(walker_in), pset(pset_in), twf(twf_in) {}
Walker< QMCTraits, PtclOnLatticeTraits > & walker

Member Data Documentation

◆ pset

ParticleSet& pset

Definition at line 43 of file WalkerElementsRef.h.

◆ twf

Definition at line 44 of file WalkerElementsRef.h.

◆ walker

Definition at line 41 of file WalkerElementsRef.h.

Referenced by WalkerControl::branch().


The documentation for this struct was generated from the following file: