QMCPACK
RMCFactory Class Reference
+ Collaboration diagram for RMCFactory:

Public Member Functions

 RMCFactory (int vmode, xmlNodePtr cur)
 
std::unique_ptr< QMCDrivercreate (const ProjectData &project_data, MCWalkerConfiguration &w, TrialWaveFunction &psi, QMCHamiltonian &h, Communicate *comm)
 

Private Attributes

int RMCMode
 
xmlNodePtr myNode
 

Detailed Description

Definition at line 23 of file RMCFactory.h.

Constructor & Destructor Documentation

◆ RMCFactory()

RMCFactory ( int  vmode,
xmlNodePtr  cur 
)
inline

Definition at line 30 of file RMCFactory.h.

30 : RMCMode(vmode), myNode(cur) {}

Member Function Documentation

◆ create()

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

Definition at line 20 of file RMCFactory.cpp.

References qmcplusplus::comm, and RMCFactory::RMCMode.

Referenced by QMCDriverFactory::createQMCDriver().

25 {
26  std::unique_ptr<QMCDriver> qmc;
27 
28  if (RMCMode == 0 || RMCMode == 1) //(0,0,0) (0,0,1) pbyp and all electron
29  {
30  qmc = std::make_unique<RMC>(project_data, w, psi, h, comm);
31  }
32  qmc->setUpdateMode(RMCMode & 1);
33  return qmc;
34 }

Member Data Documentation

◆ myNode

xmlNodePtr myNode
private

Definition at line 27 of file RMCFactory.h.

◆ RMCMode

int RMCMode
private

Definition at line 26 of file RMCFactory.h.

Referenced by RMCFactory::create().


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