48#include "MueLu_Utilities.hpp"
57 case Teuchos::VERB_NONE:
59 case Teuchos::VERB_DEFAULT:
61 case Teuchos::VERB_LOW:
63 case Teuchos::VERB_MEDIUM:
65 case Teuchos::VERB_HIGH:
67 case Teuchos::VERB_EXTREME:
77 typedef std::string::value_type char_t;
78 typedef std::ctype<char_t> facet_type;
79 const facet_type& facet = std::use_facet<facet_type> (std::locale ());
81 const std::string::size_type len = s.size ();
83 for (std::string::size_type k = 0; k < len; ++k) {
84 s_lc[k] = facet.tolower (s[k]);
91 std::map<std::string, MsgType> verbMap;
93 verbMap[
"errors"] =
Errors;
111 verbMap[
"debug"] =
Debug;
112 verbMap[
"test"] =
Test;
119 verbMap[
"test"] =
Test;
122 verbMap[
"none"] =
None;
123 verbMap[
"low"] =
Low;
124 verbMap[
"medium"] =
Medium;
125 verbMap[
"high"] =
High;
128 std::string lcVerb =
lowerCase(verbLevelStr);
129 if (verbMap.find(lcVerb) != verbMap.end())
130 return verbMap[lcVerb];
132 TEUCHOS_TEST_FOR_EXCEPTION(
true,
Exceptions::RuntimeError,
"MueLu::ParameterListInterpreter():: invalid verbosity level: " << verbLevelStr);
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.