flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
observable_problems_format.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 OBSERVABLE_PROBLEMS_FORMAT_H
20#define OBSERVABLE_PROBLEMS_FORMAT_H
21
22#include "observables.hpp"
24#include "string_format.hpp"
25
26#include <iosfwd>
27#include <string>
28
29namespace flexiblesusy {
30
31namespace observable_problems {
32
34template <typename OutputIterator>
35void copy_problem_strings(const Problem_general& p, OutputIterator oi)
36{
38 oi = "all observables: non-perturbative running to scale "
40 + " GeV";
41 oi++;
42 }
43 if (p.have_thrown()) {
44 oi = "all observables: unknown exception thrown";
45 oi++;
46 }
47}
48
49
51template <typename OutputIterator>
52void copy_problem_strings(const Problem_a_muon& p, OutputIterator oi)
53{
56 + ": non-perturbative running to scale "
58 + " GeV";
59 oi++;
60 }
61}
62
63} // namespace observable_problems
64
65
67template <typename OutputIterator>
68void copy_problem_strings(const Observable_problems& op, OutputIterator oi)
69{
72}
73
74
76std::ostream& operator<<(std::ostream&, const Observable_problems&);
77
78} // namespace flexiblesusy
79
80#endif
observable_problems::Problem_general general
general problems
observable_problems::Problem_a_muon a_muon
problems for a_muon
void copy_problem_strings(const Problem_general &p, OutputIterator oi)
copies problem strings to output iterator
const char *const observable_names[NUMBER_OF_OBSERVABLES]
observable names
Definition: observables.cpp:25
std::string to_string(char a)
void copy_problem_strings(const Observable_problems &op, OutputIterator oi)
copies problem strings to output iterator
std::ostream & operator<<(std::ostream &ostr, const Dynamic_array_view< ElementType > &av)
Definition: array_view.hpp:143