QMCPACK
MomentumDistributionInput.cpp
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) 2021 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
8 //
9 // Some code refactored from: MomentumDistribution.cpp
10 //////////////////////////////////////////////////////////////////////////////////////
12 
13 namespace qmcplusplus
14 {
15 
17 {
18  // This results in checkParticularValidity being called on MomentumDistributionInput
20 
21  auto setIfInInput = [&](auto& var, const std::string& tag) -> bool { return input_section_.setIfInInput(var, tag); };
22  setIfInInput(name_, "name");
23  setIfInInput(type_, "type");
24  setIfInInput(samples_, "samples");
25  setIfInInput(kmax_, "kmax");
26  setIfInInput(kmax0_, "kmax0");
27  setIfInInput(kmax1_, "kmax1");
28  setIfInInput(kmax2_, "kmax2");
29 }
30 
31 
32 } // namespace qmcplusplus
33 
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
MomentumDistributionInputSection input_section_
void readXML(xmlNodePtr cur)
Read variable values (initialize) from XML input, call checkValid.
bool setIfInInput(T &var, const std::string &tag)
set var if input section has read the tag
Definition: InputSection.h:122