19std::string cleanupLabel(
const std::string& label) {
22 auto clean_label = label;
23 std::vector<std::string> bad_values = {
"\""};
24 std::vector<std::string> good_values = {
"'"};
25 for (
size_t i = 0; i < bad_values.size(); ++i) {
26 const auto& bad_value = bad_values[i];
27 const auto& good_value = good_values[i];
29 while ((pos = clean_label.find(bad_value, pos)) != std::string::npos) {
30 clean_label.replace(pos, bad_value.size(), good_value);
31 pos += good_value.size();
45 label_ = cleanupLabel(
"MueLu: " + msg);
48 timer_ = rcp(
new Teuchos::TimeMonitor(*Teuchos::TimeMonitor::getNewTimer(
label_)));
Base class for MueLu classes.
RCP< Teuchos::TimeMonitor > timer_
VerbLevel GetVerbLevel() const
Get the verbosity level.
int SetProcRankVerbose(int procRank) const
Set proc rank used for printing.
void SetVerbLevel(const VerbLevel verbLevel)
Set the verbosity level of this object.
bool IsPrint(MsgType type, int thisProcRankOnly=-1) const
Find out whether we need to print out information for a specific message type.
int GetProcRankVerbose() const
Get proc rank used for printing. Do not use this information for any other purpose....
Namespace for MueLu classes and methods.
@ RuntimeTimings
Timers that are enabled (using Timings0/Timings1) will be printed during the execution.
@ NoTimeReport
By default, enabled timers appears in the teuchos time monitor summary. Use this option if you do not...