Debian Codegraph @

packages/muelu/src/MueCentral/MueLu_VerbosityLevel.hpp

raw
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifndef MUELU_VERBOSITYLEVEL_HPP
11 #define MUELU_VERBOSITYLEVEL_HPP
12
13 #include <Teuchos_VerbosityLevel.hpp>
14
15 namespace MueLu {
16
17 enum MsgType {
18 Errors = 0x00000001, //!< Errors
19
20 Warnings0 = 0x00000010, //!< Important warning messages (one line)
21 Warnings00 = 0x00000020, //!< Important warning messages (more verbose)
22 Warnings1 = 0x00000040, //!< Additional warnings
23 PerfWarnings = 0x00000080, //!< Performance warnings
24
25 Runtime0 = 0x00000100, //!< One-liner description of what is happening
26 Runtime1 = 0x00000200, //!< Description of what is happening (more verbose)
27 RuntimeTimings = 0x00000400, //!< Timers that are enabled (using Timings0/Timings1) will be printed during the execution
28 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.
29
30 Parameters0 = 0x00001000, //!< Print class parameters
31 Parameters1 = 0x00002000, //!< Print class parameters (more parameters, more verbose)
32
33 Statistics0 = 0x00010000, //!< Print statistics that do not involve significant additional computation
34 Statistics1 = 0x00020000, //!< Print more statistics
35 Statistics2 = 0x00040000, //!< Print even more statistics
36
37 Timings0 = 0x00100000, //!< High level timing information (use Teuchos::TimeMonitor::summarize() to print)
38 Timings1 = 0x00200000, //!< Detailed timing information (use Teuchos::TimeMonitor::summarize() to print)
39 TimingsByLevel = 0x00400000, //!< Record timing information level by level. Must be used in combinaison with Timings0/Timings1
40
41 External = 0x01000000, //!< Print external lib objects
42 Debug = 0x02000000, //!< Print additional debugging information
43
44 Developer = 0x04000000, //!< Print information primarily of interest to developers
45
46 // Print skeleton for the run
47 Test0 = 0x10000000, //!< Print factory calls
48 Test1 = 0x20000000, //!< Print used parameters
49
50 // Predefined combinations of MsgType
51 // Can be used in user code or examples. Do not used as input parameters of IsPrint() or GetOStream().
52 Warnings = Warnings0 | Warnings00 | Warnings1 | PerfWarnings, //!< Print all warning messages
53 Runtime = Runtime0 | Runtime1, //!< Print description of what is going on
54 Parameters = Parameters0 | Parameters1, //!< Print parameters
55 Statistics = Statistics0 | Statistics1 | Statistics2, //!< Print all statistics
56 Timings = Timings0 | Timings1 | TimingsByLevel, //!< Print all timing information
57 Test = Test0 | Test1 | Runtime0,
58 InterfaceTest = Test0 | Runtime0,
59
60 //
61 None = 0,
62 Low = Errors | Warnings0 | Statistics0,
63 Medium = Errors | Warnings0 | Runtime0 | Parameters0 | Statistics0 | Statistics1 | Timings0,
64 High = Errors | Warnings | Runtime | Parameters | Statistics0 | Statistics1 | Timings,
65 #ifdef HAVE_MUELU_DEBUG
66 Extreme = Errors | Warnings | Runtime | Parameters | Statistics | Timings | External | Developer | Debug,
67 #else
68 Extreme = Errors | Warnings | Runtime | Parameters | Statistics | Timings | External | Developer,
69 #endif
70 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
71
72 NotSpecified = -1
73 };
74
75 //!
76 typedef int VerbLevel;
77
78 //! Translate Teuchos verbosity level to MueLu verbosity level
79 VerbLevel toMueLuVerbLevel(const Teuchos::EVerbosityLevel verbLevel);
80
81 //!
82 MsgType toVerbLevel(const std::string& verbLevelStr);
83
84 } // namespace MueLu
85
86 #endif