29 using MCPWalker = Walker<QMCTraits, PtclOnLatticeTraits>;
40 emb_ = std::make_unique<EstimatorManagerBase>(
comm_);
41 emb_->add(std::make_unique<FakeEstimator>(),
"fake");
47 emb_ = std::make_unique<EstimatorManagerBase>(
comm_);
48 emb_->add(std::make_unique<FakeEstimator>(),
"fake");
54 mcwc_ = std::make_unique<MCWalkerConfiguration>(simulation_cell);
55 mcwc_->setName(
"electrons");
67 mcwc_->createWalkers(2);
68 (*mcwc_)[0]->R = w1.
R;
69 (*mcwc_)[1]->R = w2.
R;
73 sfnb.setEstimatorManager(std::move(
emb_));
78 sfnb.initWalkerController(*
mcwc_,
false,
false);
92 doc_ = std::make_unique<Libxml2Document>();
93 doc_->parseFromString(xml);
111 TEST_CASE(
"SimpleFixedNodeBranch::branch(MCWC...)",
"[drivers][legacy]")
113 using namespace testing;
SetupSimpleFixedNodeBranch(Communicate *comm)
helper functions for EinsplineSetBuilder
SetupSimpleFixedNodeBranch()
TEST_CASE("complex_helper", "[type_traits]")
Communicate * Controller
Global Communicator for a process.
UPtr< Libxml2Document > doc_
constexpr int valid_dmc_input_dmc_index
Wrapping information on parallelism.
Manages the state of QMC sections and handles population control for DMCs.
void createMyNode(SimpleFixedNodeBranch &sfnb, const char *xml)
std::unique_ptr< T > UPtr
Manager class of scalar estimators.
UPtr< EstimatorManagerBase > emb_
UPtr< MCPopulation > pop_
std::unique_ptr< SFNBranch > sfnb
QMCTraits::RealType RealType
UPtr< MCWalkerConfiguration > mcwc_
Walker< QMCTraits, PtclOnLatticeTraits > MCPWalker
constexpr std::array< const char *, 3 > valid_dmc_input_sections
declare a handler of DMC branching
SimpleFixedNodeBranch operator()()
Declaration of a MCWalkerConfiguration.
A container class to represent a walker.
avoids many repeated xml heredoc sections
SetupSimpleFixedNodeBranch setup_sfnb
ParticlePos R
The configuration vector (3N-dimensional vector to store the positions of all the particles for a sin...