-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver-portable walker logging #5019
Changes from all commits
e36d329
abf1634
8a885a1
ca70bc8
5b8072b
d21b2ce
1545230
875ee62
e0fcd9b
6e1ad00
d4edf72
6aeb13c
b0b9175
a1b48c2
586c7db
6fdcae6
77bfcbd
c50cbfc
4c881ef
dceab3a
e7544be
75f2aa1
ecfdca8
6c9c7f4
196a4b4
00986dc
4bb5275
3b92dc8
9d7128a
61b0f3c
f5c2224
94a8d15
af77214
23e1c4a
89fe362
085c7b3
b042ff9
fe47abd
921411f
ea9a8e6
53b43c6
dc01863
8eb6e06
9491933
d8745a2
57cdaae
8426fa1
22ea904
ba7450d
157dda3
c792aff
4a7d770
35871ac
740cf6b
be01ba4
a832b7c
9408943
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
// | ||
// Copyright (c) 2018 Jeongnim Kim and QMCPACK developers. | ||
// | ||
// File developed by: Mark Dewing, mdewin@anl.gov, Argonne National Laboratory | ||
// File developed by: Mark Dewing, mdewing@anl.gov, Argonne National Laboratory | ||
// | ||
// File created by: Mark Dewing, [email protected], Argonne National Laboratory | ||
////////////////////////////////////////////////////////////////////////////////////// | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,9 @@ class QMCMain : public MPIObjectBase, public QMCAppBase | |
///xml mcwalkerset read-in elements | ||
std::vector<xmlNodePtr> walker_set_in_; | ||
|
||
///walkerlogs xml | ||
xmlNodePtr walker_logs_xml_; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please do something like
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also don't like storing xml, parsing the xml in-place and store the result seems cleaner. We can make some improvements with a later PR. |
||
|
||
///traces xml | ||
xmlNodePtr traces_xml_; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
#include "Crowd.h" | ||
#include "QMCHamiltonians/QMCHamiltonian.h" | ||
|
||
|
||
namespace qmcplusplus | ||
{ | ||
Crowd::Crowd(EstimatorManagerNew& emb, | ||
|
@@ -81,8 +82,16 @@ void Crowd::startBlock(int num_steps) | |
// VMCBatched does no nonlocal moves | ||
n_nonlocal_accept_ = 0; | ||
estimator_manager_crowd_.startBlock(num_steps); | ||
wlog_collector_.startBlock(); | ||
} | ||
|
||
void Crowd::stopBlock() { estimator_manager_crowd_.stopBlock(); } | ||
|
||
void Crowd::collectStepWalkerLog(int current_step) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
{ | ||
for (int iw = 0; iw < size(); ++iw) | ||
wlog_collector_.collect(mcp_walkers_[iw], walker_elecs_[iw], walker_twfs_[iw], walker_hamiltonians_[iw], current_step); | ||
} | ||
|
||
|
||
} // namespace qmcplusplus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parse it when it is found into an input class. See estimator manager input handling.