Skip to content

Commit

Permalink
Make wlog_collector_ private in Crowd.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Jun 11, 2024
1 parent be01ba4 commit a832b7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/QMCDrivers/Crowd.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class Crowd
DriverWalkerResourceCollection driverwalker_resource_collection_;
/// per crowd estimator manager
EstimatorManagerCrowd estimator_manager_crowd_;
// collector for walker logs
WalkerLogCollector wlog_collector_;

/** @name Step State
*
Expand All @@ -145,8 +147,6 @@ class Crowd
unsigned long n_accept_ = 0;
unsigned long n_nonlocal_accept_ = 0;
/** @} */
public:
WalkerLogCollector wlog_collector_;
};

} // namespace qmcplusplus
Expand Down
2 changes: 1 addition & 1 deletion src/QMCDrivers/DMC/DMCBatched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ bool DMCBatched::run()
wlog_manager_ = std::make_unique<WalkerLogManager>(walker_logs_input, allow_walker_logs, get_root_name(), myComm);
std::vector<WalkerLogCollector*> wlog_collectors;
for (auto& c: crowds_)
wlog_collectors.push_back(&c->wlog_collector_);
wlog_collectors.push_back(&c->getWalkerLogCollector());
wlog_manager_->startRun(wlog_collectors);

StateForThread dmc_state(qmcdriver_input_, *drift_modifier_, *branch_engine_, population_, steps_per_block_);
Expand Down

0 comments on commit a832b7c

Please sign in to comment.