QMCPACK
DMCFactory Class Reference
+ Collaboration diagram for DMCFactory:

Public Member Functions

 DMCFactory (bool pbyp, bool gpu, xmlNodePtr cur)
 
std::unique_ptr< QMCDrivercreate (const ProjectData &project_data, MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, Communicate *comm, bool enable_profiling)
 

Private Attributes

bool PbyPUpdate
 
bool GPU
 
xmlNodePtr myNode
 

Detailed Description

Definition at line 22 of file DMCFactory.h.

Constructor & Destructor Documentation

◆ DMCFactory()

DMCFactory ( bool  pbyp,
bool  gpu,
xmlNodePtr  cur 
)
inline

Definition at line 29 of file DMCFactory.h.

29 : PbyPUpdate(pbyp), GPU(gpu), myNode(cur) {}

Member Function Documentation

◆ create()

std::unique_ptr< QMCDriver > create ( const ProjectData project_data,
MCWalkerConfiguration w,
TrialWaveFunction psi,
QMCHamiltonian h,
Communicate comm,
bool  enable_profiling 
)

Definition at line 24 of file DMCFactory.cpp.

References RandomNumberControl::Children, qmcplusplus::comm, and DMCFactory::PbyPUpdate.

Referenced by QMCDriverFactory::createQMCDriver().

30 {
31  auto qmc = std::make_unique<DMC>(project_data, w, psi, h, RandomNumberControl::Children, comm, enable_profiling);
32  qmc->setUpdateMode(PbyPUpdate);
33  return qmc;
34 }
static UPtrVector< RandomBase< FullPrecRealType > > Children

Member Data Documentation

◆ GPU

bool GPU
private

Definition at line 25 of file DMCFactory.h.

◆ myNode

xmlNodePtr myNode
private

Definition at line 26 of file DMCFactory.h.

◆ PbyPUpdate

bool PbyPUpdate
private

Definition at line 25 of file DMCFactory.h.

Referenced by DMCFactory::create().


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