-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Log level documentation on remaining package #3494
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arng40
Just a couple of typos.
Also, could you create a "log level" section in the documentation to give an example of usage for the revised approach to log levels?
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | ||
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | ||
* Copyright (c) 2018-2020 TotalEnergies | ||
* Copyright (c) 2019- GEOSX Contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2018-2020 TotalEnergies | |
* Copyright (c) 2019- GEOSX Contributors | |
* Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2024 TotalEnergies | |
* Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2023-2024 Chevron | |
* Copyright (c) 2019- GEOS/GEOSX Contributors | |
* All rights reserved |
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | ||
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | ||
* Copyright (c) 2018-2020 TotalEnergies | ||
* Copyright (c) 2019- GEOSX Contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2018-2020 TotalEnergies | |
* Copyright (c) 2019- GEOSX Contributors | |
* Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2024 TotalEnergies | |
* Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2023-2024 Chevron | |
* Copyright (c) 2019- GEOS/GEOSX Contributors | |
* All rights reserved |
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | ||
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | ||
* Copyright (c) 2018-2020 TotalEnergies | ||
* Copyright (c) 2019- GEOSX Contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Copyright (c) 2018-2020 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2020 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2018-2020 TotalEnergies | |
* Copyright (c) 2019- GEOSX Contributors | |
* Copyright (c) 2016-2024 Lawrence Livermore National Security LLC | |
* Copyright (c) 2018-2024 TotalEnergies | |
* Copyright (c) 2018-2024 The Board of Trustees of the Leland Stanford Junior University | |
* Copyright (c) 2023-2024 Chevron | |
* Copyright (c) 2019- GEOS/GEOSX Contributors | |
* All rights reserved``` |
struct Crossflow | ||
{ | ||
static constexpr int getMinLogLevel() { return 1; } | ||
static constexpr std::string_view getDescription() { return "Crossflow information"; } | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this go in FlowSolvers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that several subfolder LogLevelsInfo.hpp
files were removed and consolidated at a higher level. I am not sure this is what we would want? @arng40 What is the argument for the consolidation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concerning the files that being moved at a higher level, I was divided between keep things simple by putting the log levels at a higher level or group the log levels and set them to correct location.
With your comments I'll go for 2nd option
struct DetailedRegionsSourceFluxStats | ||
{ | ||
static constexpr int getMinLogLevel() { return 3; } | ||
static constexpr std::string_view getDescription() { return "Print statistics for each source flux in each regions"; } | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for this
struct RuptureRate | ||
{ | ||
static constexpr int getMinLogLevel() { return 3; } | ||
static constexpr std::string_view getDescription() { return "Rupture rate information"; } | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to SurfaceGenerator?
}; | ||
|
||
struct NonlinearSolver | ||
struct StencilConnection |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would expect this in Flow too.
struct WellComponents | ||
{ | ||
static constexpr int getMinLogLevel() { return 1; } | ||
static constexpr std::string_view getDescription() { return "Well components information"; } | ||
}; | ||
|
||
struct WellControl | ||
{ | ||
static constexpr int getMinLogLevel() { return 1; } | ||
static constexpr std::string_view getDescription() { return "Well control information"; } | ||
}; | ||
|
||
struct WellValidity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and I would expect these to be define in the Well solvers folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://geosx-geosx--3494.com.readthedocs.build/en/3494/docs/sphinx/datastructure/CompleteXMLSchema.html#input-schema-definitions
There still are some undocumented logLevel
parameters (like Aquifer
). If they do not output any message in the log, they should not appear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In LogLevelsRegistry.cpp,
description << "Sets the level of information to write in the standard output (the console typically).\n"
"Level 0 outputs no specific information for this solver. Higher levels require more outputs.";
This description can be improved:
- properly mention that the levels adds up with the lower levels,
- as it is written for any
Group
, even those that are unrelated to solvers, you cannot relate to any "solver" concept.
This PR follow #3230 and aim to document all log level remaining in GEOS
Extends the new log level documentation to all GEOS :
GEOS_LOG_LEVEL
macro located inLogger.hpp
LogLevelInfos.hpp
) under each package ( folder directly undercoreCompenent/
)