// @HEADER // ***************************************************************************** // MueLu: A package for multigrid based preconditioning // // Copyright 2012 NTESS and the MueLu contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER #ifndef MUELU_VERBOSITYLEVEL_HPP #define MUELU_VERBOSITYLEVEL_HPP #include namespace MueLu { enum MsgType { Errors = 0x00000001, //!< Errors Warnings0 = 0x00000010, //!< Important warning messages (one line) Warnings00 = 0x00000020, //!< Important warning messages (more verbose) Warnings1 = 0x00000040, //!< Additional warnings PerfWarnings = 0x00000080, //!< Performance warnings Runtime0 = 0x00000100, //!< One-liner description of what is happening Runtime1 = 0x00000200, //!< Description of what is happening (more verbose) RuntimeTimings = 0x00000400, //!< Timers that are enabled (using Timings0/Timings1) will be printed during the execution NoTimeReport = 0x00000800, //!< By default, enabled timers appears in the teuchos time monitor summary. Use this option if you do not want to record timing information. Parameters0 = 0x00001000, //!< Print class parameters Parameters1 = 0x00002000, //!< Print class parameters (more parameters, more verbose) Statistics0 = 0x00010000, //!< Print statistics that do not involve significant additional computation Statistics1 = 0x00020000, //!< Print more statistics Statistics2 = 0x00040000, //!< Print even more statistics Timings0 = 0x00100000, //!< High level timing information (use Teuchos::TimeMonitor::summarize() to print) Timings1 = 0x00200000, //!< Detailed timing information (use Teuchos::TimeMonitor::summarize() to print) TimingsByLevel = 0x00400000, //!< Record timing information level by level. Must be used in combinaison with Timings0/Timings1 External = 0x01000000, //!< Print external lib objects Debug = 0x02000000, //!< Print additional debugging information Developer = 0x04000000, //!< Print information primarily of interest to developers // Print skeleton for the run Test0 = 0x10000000, //!< Print factory calls Test1 = 0x20000000, //!< Print used parameters // Predefined combinations of MsgType // Can be used in user code or examples. Do not used as input parameters of IsPrint() or GetOStream(). Warnings = Warnings0 | Warnings00 | Warnings1 | PerfWarnings, //!< Print all warning messages Runtime = Runtime0 | Runtime1, //!< Print description of what is going on Parameters = Parameters0 | Parameters1, //!< Print parameters Statistics = Statistics0 | Statistics1 | Statistics2, //!< Print all statistics Timings = Timings0 | Timings1 | TimingsByLevel, //!< Print all timing information Test = Test0 | Test1 | Runtime0, InterfaceTest = Test0 | Runtime0, // None = 0, Low = Errors | Warnings0 | Statistics0, Medium = Errors | Warnings0 | Runtime0 | Parameters0 | Statistics0 | Statistics1 | Timings0, High = Errors | Warnings | Runtime | Parameters | Statistics0 | Statistics1 | Timings, #ifdef HAVE_MUELU_DEBUG Extreme = Errors | Warnings | Runtime | Parameters | Statistics | Timings | External | Developer | Debug, #else Extreme = Errors | Warnings | Runtime | Parameters | Statistics | Timings | External | Developer, #endif Default = High, // This is the default of print() methods. For VerboseObject, another default is set by VerboseObject::globalVerbLevel_ // TODO: move it to the VerboseObject class NotSpecified = -1 }; //! typedef int VerbLevel; //! Translate Teuchos verbosity level to MueLu verbosity level VerbLevel toMueLuVerbLevel(const Teuchos::EVerbosityLevel verbLevel); //! MsgType toVerbLevel(const std::string& verbLevelStr); } // namespace MueLu #endif