flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
bvp_solver_problems.hpp
Go to the documentation of this file.
1// ====================================================================
2// This file is part of FlexibleSUSY.
3//
4// FlexibleSUSY is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published
6// by the Free Software Foundation, either version 3 of the License,
7// or (at your option) any later version.
8//
9// FlexibleSUSY is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with FlexibleSUSY. If not, see
16// <http://www.gnu.org/licenses/>.
17// ====================================================================
18
19#ifndef BVP_SOLVER_PROBLEMS_H
20#define BVP_SOLVER_PROBLEMS_H
21
22#include "problems.hpp"
23
24namespace flexiblesusy {
25
27public:
28 BVP_solver_problems(const std::string&);
29
30 void clear();
31 bool have_problem() const;
32 bool have_warning() const;
33 unsigned number_of_problems() const;
34 unsigned number_of_warnings() const;
35 std::vector<std::string> get_problem_strings() const;
36 std::vector<std::string> get_warning_strings() const;
37 std::string get_problem_string() const;
38 std::string get_warning_string() const;
39 void print_problems() const;
40 void print_problems(std::ostream&) const;
41 void print_warnings() const;
42 void print_warnings(std::ostream&) const;
43 const std::string& get_solver_name() const;
44
47 bool no_convergence() const;
48
49private:
50 std::string name;
51 bool failed_convergence{false};
52};
53
54std::ostream& operator<<(std::ostream&, const BVP_solver_problems&);
55
56} // namespace flexiblesusy
57
58#endif
std::vector< std::string > get_warning_strings() const
std::vector< std::string > get_problem_strings() const
bool have_problem() const
problems which yield invalid spectrum
std::string name
BVP solver name.
unsigned number_of_warnings() const
returns number of warnings
const std::string & get_solver_name() const
unsigned number_of_problems() const
returns number of problems
std::ostream & operator<<(std::ostream &ostr, const Dynamic_array_view< ElementType > &av)
Definition: array_view.hpp:143