QMCPACK
EstimatorInput.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) 2021 QMCPACK developers.
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef QMCPLUSPLUS_ESIMATORINPUT_H
13 #define QMCPLUSPLUS_ESIMATORINPUT_H
14 
15 #include <string>
16 #include "Configuration.h"
17 #include "InputSection.h"
18 
19 /** If tag is present in input_secution set its variable.
20  * Many variables have default values we don't want overwritten and that we want expressed in native c++
21  * Define macro to avoid repeating code for this lambda
22  */
23 #define LAMBDA_setIfInInput \
24  [&](auto& var, const std::string& tag) -> bool { return input_section_.setIfInInput(var, tag); }
25 
26 namespace qmcplusplus
27 {
28 namespace estimatorinput
29 {
30 
31 void checkCenterCorner(InputSection& input_section, const std::string& error_tag);
32 
33 } // namespace estimatorinput
34 } // namespace qmcplusplus
35 #endif
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
void checkCenterCorner(InputSection &input_section, const std::string &error_tag)