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