GEOS
LogLevelsInfo.hpp
Go to the documentation of this file.
1 /*
2  * ------------------------------------------------------------------------------------------------------------
3  * SPDX-License-Identifier: LGPL-2.1-only
4  *
5  * Copyright (c) 2018-2020 Lawrence Livermore National Security LLC
6  * Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University
7  * Copyright (c) 2018-2020 TotalEnergies
8  * Copyright (c) 2019- GEOSX Contributors
9  * All rights reserved
10  *
11  * See top level LICENSE, COPYRIGHT, CONTRIBUTORS, NOTICE, and ACKNOWLEDGEMENTS files for details.
12  * ------------------------------------------------------------------------------------------------------------
13  */
14 
20 #ifndef GEOS_PHYSICSSOLVERS_LOGLEVELSINFO_HPP
21 #define GEOS_PHYSICSSOLVERS_LOGLEVELSINFO_HPP
22 
23 #include "common/DataTypes.hpp"
24 
25 namespace geos
26 {
27 
28 namespace logInfo
29 {
30 
35 
37 
38 struct Fields
39 {
40  static constexpr int getMinLogLevel() { return 2; }
41  static constexpr std::string_view getDescription() { return "The summary of declared fields and coupling"; }
42 };
43 
44 struct LineSearch
45 {
46  static constexpr int getMinLogLevel() { return 1; }
47  static constexpr std::string_view getDescription() { return "Line search information"; }
48 };
49 
50 struct Solution
51 {
52  static constexpr int getMinLogLevel() { return 1; }
53  static constexpr std::string_view getDescription() { return "Solution information (scaling, maximum changes, quality check)"; }
54 };
55 
56 struct Convergence
57 {
58  static constexpr int getMinLogLevel() { return 1; }
59  static constexpr std::string_view getDescription() { return "Convergence information"; }
60 };
61 
62 struct TimeStep
63 {
64  static constexpr int getMinLogLevel() { return 1; }
65  static constexpr std::string_view getDescription() { return "Time step information"; }
66 };
67 
68 struct LinearSolver
69 {
70  static constexpr int getMinLogLevel() { return 1; }
71  static constexpr std::string_view getDescription() { return "Linear solver information"; }
72 };
73 
74 struct NonlinearSolver
75 {
76  static constexpr int getMinLogLevel() { return 1; }
77  static constexpr std::string_view getDescription() { return "Nonlinear solver information"; }
78 };
79 
80 struct Timers
81 {
82  static constexpr int getMinLogLevel() { return 1; }
83  static constexpr std::string_view getDescription() { return "Solver timers information"; }
84 };
85 
86 struct Initialization
87 {
88  static constexpr int getMinLogLevel() { return 1; }
89  static constexpr std::string_view getDescription() { return "Initialization information"; }
90 };
91 
94 
95 }
96 
97 }
98 
99 #endif // GEOS_PHYSICSSOLVERS_LOGLEVELSINFO_HPP
constexpr std::string_view getDescription(Unit unit)
Definition: Units.hpp:109
std::string_view string_view
String type.
Definition: DataTypes.hpp:94