votca 2024.2-dev
Loading...
Searching...
No Matches
GaussianQuadratureBase.cc
Go to the documentation of this file.
1/*
2 * Copyright 2009-2020 The VOTCA Development Team
3 * (http://www.votca.org)
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License")
6 *
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 */
19
20// Local VOTCA includes
22
23namespace votca {
24namespace xtp {
26 Index order, const std::map<Index, Eigen::VectorXd>& map) const {
27 if (map.count(order) == 0) {
28 std::string keys = "{ ";
29 for (const auto& pair : map) {
30 keys += std::to_string(pair.first) + " ";
31 }
32 keys += "}";
33 throw std::invalid_argument("Order " + std::to_string(order) + " not in " +
34 keys +
35 ". Please "
36 " select one of these numbers");
37 }
38}
39
40} // namespace xtp
41} // namespace votca
void CheckOrder(Index order, const std::map< Index, Eigen::VectorXd > &map) const
base class for all analysis tools
Definition basebead.h:33
Eigen::Index Index
Definition types.h:26