QMCPACK
WalkerLogInput.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2024 QMCPACK developers.
6 //
7 // File developed by: Jaron T. Krogel, krogeljt@ornl.gov, Oak Ridge National Laboratory
8 //
9 //////////////////////////////////////////////////////////////////////////////////////
10 #ifndef QMCPLUSPLUS_WALKERLOGINPUT_H
11 #define QMCPLUSPLUS_WALKERLOGINPUT_H
12 
13 #include "InputSection.h"
14 
15 namespace qmcplusplus
16 {
17 
18 /** Native representation for walker logs input
19  */
21 {
22  bool present;
23 
25 
26  WalkerLogInput(xmlNodePtr cur)
27  {
28  section_name = "walkerlogs";
29  attributes = {"step_period", "particle", "min", "max", "median", "quantiles", "verbose"};
30  integers = {"step_period"};
31  bools = {"particle", "min", "max", "median", "quantiles", "verbose"};
32  default_values = {{"step_period", int(1)}, {"particle", bool(false)}, {"min", bool(true)}, {"max", bool(true)},
33  {"median", bool(true)}, {"quantiles", bool(true)}, {"verbose", bool(false)}};
34  present = cur != NULL;
35  if (present)
36  readXML(cur);
37  };
38 };
39 
40 } // namespace qmcplusplus
41 #endif /* WALKERLOGINPUT_H */
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
std::unordered_map< std::string, std::any > default_values
Definition: InputSection.h:79
std::unordered_set< std::string > integers
Definition: InputSection.h:71
void readXML(xmlNodePtr cur)
Read variable values (initialize) from XML input, call checkValid.
std::unordered_set< std::string > attributes
Definition: InputSection.h:62
std::unordered_set< std::string > bools
Definition: InputSection.h:70
Input section provides basic parsing and a uniform method of access to the raw parsed input...
Definition: InputSection.h:37
WalkerLogInput(xmlNodePtr cur)
std::string section_name
"Name" of the input section, you must define this in the subtype and the ename, name, type, or method must match.
Definition: InputSection.h:57
Native representation for walker logs input.