QMCPACK
PerParticleHamiltonianLoggerInput.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) 2022 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
8 //
9 // Some code refactored from: DensityMatrices1b.h
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef QMCPLUSPLUS_PER_PARTICLE_HAMILTONIAN_LOGGER_INPUT_H
13 #define QMCPLUSPLUS_PER_PARTICLE_HAMILTONIAN_LOGGER_INPUT_H
14 
15 #include "Configuration.h"
16 #include "InputSection.h"
17 #include "OperatorEstBase.h"
18 
19 namespace qmcplusplus
20 {
21 class PerParticleHamiltonianLogger;
23 {
24 public:
27 
29  {
30  public:
32  {
33  section_name = "PerParticleHamiltonianLogger";
34  attributes = {"to_stdout", "validate_per_particle_sum", "type", "name"};
35  bools = {"to_stdout", "validate_per_particle_sum"};
36  strings = {"type", "name"};
37  }
39  };
41  PerParticleHamiltonianLoggerInput(xmlNodePtr cur);
42 
43  /** For this input class its valid with just its defaults
44  */
46 
47  const std::string& get_name() const { return name_; }
48  bool get_to_stdout() const { return to_stdout_; }
49 
50 private:
52  std::string name_ = "per_particle_log";
53  bool to_stdout_ = false;
54 };
55 } // namespace qmcplusplus
56 #endif
std::unordered_set< std::string > strings
Definition: InputSection.h:67
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
PerParticleHamiltonianLoggerInput()=default
For this input class its valid with just its defaults.
QTBase::RealType RealType
Definition: Configuration.h:58
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
PerParticleHamiltonianLoggerInputSection input_section_
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