12#include "MueLu_Utilities.hpp"
20 case Teuchos::VERB_NONE:
22 case Teuchos::VERB_DEFAULT:
24 case Teuchos::VERB_LOW:
26 case Teuchos::VERB_MEDIUM:
28 case Teuchos::VERB_HIGH:
30 case Teuchos::VERB_EXTREME:
39 typedef std::string::value_type char_t;
40 typedef std::ctype<char_t> facet_type;
41 const facet_type& facet = std::use_facet<facet_type>(std::locale());
43 const std::string::size_type len = s.size();
45 for (std::string::size_type k = 0; k < len; ++k) {
46 s_lc[k] = facet.tolower(s[k]);
53 std::map<std::string, MsgType> verbMap;
55 verbMap[
"errors"] =
Errors;
73 verbMap[
"debug"] =
Debug;
74 verbMap[
"test"] =
Test;
81 verbMap[
"test"] =
Test;
84 verbMap[
"none"] =
None;
86 verbMap[
"medium"] =
Medium;
87 verbMap[
"high"] =
High;
90 std::string lcVerb =
lowerCase(verbLevelStr);
91 if (verbMap.find(lcVerb) != verbMap.end())
92 return verbMap[lcVerb];
94 TEUCHOS_TEST_FOR_EXCEPTION(
true,
Exceptions::RuntimeError,
"MueLu::ParameterListInterpreter():: invalid verbosity level: " << verbLevelStr);
95 TEUCHOS_UNREACHABLE_RETURN(
Errors);
Exception throws to report errors in the internal logical of the program.
Namespace for MueLu classes and methods.
@ Warnings00
Important warning messages (more verbose)
@ Timings1
Detailed timing information (use Teuchos::TimeMonitor::summarize() to print)
@ Warnings0
Important warning messages (one line)
@ RuntimeTimings
Timers that are enabled (using Timings0/Timings1) will be printed during the execution.
@ Developer
Print information primarily of interest to developers.
@ Warnings
Print all warning messages.
@ Debug
Print additional debugging information.
@ Statistics1
Print more statistics.
@ External
Print external lib objects.
@ Runtime
Print description of what is going on.
@ NoTimeReport
By default, enabled timers appears in the teuchos time monitor summary. Use this option if you do not...
@ Timings0
High level timing information (use Teuchos::TimeMonitor::summarize() to print)
@ PerfWarnings
Performance warnings.
@ Runtime0
One-liner description of what is happening.
@ Runtime1
Description of what is happening (more verbose)
@ Parameters
Print parameters.
@ Statistics
Print all statistics.
@ TimingsByLevel
Record timing information level by level. Must be used in combinaison with Timings0/Timings1.
@ Warnings1
Additional warnings.
@ Timings
Print all timing information.
@ Parameters0
Print class parameters.
@ Statistics0
Print statistics that do not involve significant additional computation.
@ Parameters1
Print class parameters (more parameters, more verbose)
std::string lowerCase(const std::string &s)
MsgType toVerbLevel(const std::string &verbLevelStr)
VerbLevel toMueLuVerbLevel(const Teuchos::EVerbosityLevel verbLevel)
Translate Teuchos verbosity level to MueLu verbosity level.