QMCPACK
ContextForSteps Class Reference

Thread local context for moving walkers. More...

+ Collaboration diagram for ContextForSteps:

Public Types

using FullPrecRealType = QMCTraits::FullPrecRealType
 

Public Member Functions

 ContextForSteps (RandomBase< FullPrecRealType > &random_gen)
 
RandomBase< FullPrecRealType > & get_random_gen ()
 

Protected Attributes

RandomBase< FullPrecRealType > & random_gen_
 

Detailed Description

Thread local context for moving walkers.

created once per driver per crowd It's two significant responsibilities are holding the thread local RandomGen_t And the particle group indexes.

Definition at line 33 of file ContextForSteps.h.

Member Typedef Documentation

◆ FullPrecRealType

Constructor & Destructor Documentation

◆ ContextForSteps()

Definition at line 17 of file ContextForSteps.cpp.

17 : random_gen_(random_gen) {}
RandomBase< FullPrecRealType > & random_gen_

Member Function Documentation

◆ get_random_gen()

Definition at line 19 of file ContextForSteps.cpp.

References ContextForSteps::random_gen_.

Referenced by VMCBatched::advanceWalkers(), and DMCBatched::advanceWalkers().

19 { return random_gen_; }
RandomBase< FullPrecRealType > & random_gen_

Member Data Documentation

◆ random_gen_

RandomBase<FullPrecRealType>& random_gen_
protected

Definition at line 40 of file ContextForSteps.h.

Referenced by ContextForSteps::get_random_gen().


The documentation for this class was generated from the following files: