QMCPACK
EstimatorInput.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 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Laboratory
10 //////////////////////////////////////////////////////////////////////////////////////
11 #include "EstimatorInput.h"
12 
13 /** \file
14  * collected input checks common across estimators
15  */
16 namespace qmcplusplus
17 {
18 namespace estimatorinput
19 {
20 
21 void checkCenterCorner(InputSection& input_section, const std::string& error_tag)
22 {
23  if (input_section.has("center") && input_section.has("corner"))
24  throw UniformCommunicateError(error_tag + " cannot defined both center and corner.");
25 }
26 
27 }
28 } // namespace qmcplusplus
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43
This a subclass for runtime errors that will occur on all ranks.
Input section provides basic parsing and a uniform method of access to the raw parsed input...
Definition: InputSection.h:37
bool has(const std::string &name) const
Definition: InputSection.h:87
void checkCenterCorner(InputSection &input_section, const std::string &error_tag)