[FOUR_C_WARNING] Warning messages #937
Replies: 5 comments 5 replies
-
Thanks for bringing in this idea, @abhi-satheesh! I migrated this to a discussion, so we can freely explore ideas, and generate an issue with some concrete tasks if they should arise. |
Beta Was this translation helpful? Give feedback.
-
@abhi-satheesh Some random thoughts:
|
Beta Was this translation helpful? Give feedback.
-
@sebproell thanks for the comments.
|
Beta Was this translation helpful? Give feedback.
-
I prefer to have a warning printed, when it occurs. Otherwise, there will be just a bunch of warnings at the end and one does not know, when it occurred. |
Beta Was this translation helpful? Give feedback.
-
Instead of an explicit MueLu for example uses the following verbosity levels: https://github.com/trilinos/Trilinos/blob/master/packages/muelu/src/MueCentral/MueLu_VerbosityLevel.hpp |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Similar to
FOUR_C_THROW
, it would be nice to have aFOUR_C_WARNING
macro instead of usingif
statements withstd::cout
.Furthermore, if necessary, all warnings could be collected and printed at the end of the simulation, instead of having to search through the entire simulation log.
Example: /src/adapter/4C_adapter_coupling_nonlin_mortar.cpp
if (abs((*diag)[i]) < 1e-12) { std::cout << "WARNING: Diagonal entry of D matrix is skipped because it is less than 1e-12!!!" << std::endl; (*diag)[i] = 1.0; }
changes to
FOUR_C_WARNING(condition, message )
Possible Solution and Definition of Done
Interested Parties
Beta Was this translation helpful? Give feedback.
All reactions