GEOSX
|
Go to the source code of this file.
Namespaces | |
geosx | |
Macros | |
#define | GEOSX_LOG(...) LVARRAY_LOG( __VA_ARGS__ ) |
Log a message on screen. More... | |
#define | GEOSX_LOG_VAR(...) LVARRAY_LOG_VAR( __VA_ARGS__ ) |
Log an expression and its value on screen. More... | |
#define | GEOSX_LOG_RANK_0_IF(EXP, msg) |
Conditionally log a message on screen on rank 0. More... | |
#define | GEOSX_LOG_RANK_0(msg) GEOSX_LOG_RANK_0_IF( true, msg ) |
Log a message on screen on rank 0. More... | |
#define | GEOSX_LOG_RANK_IF(EXP, msg) |
Conditionally log a message to the rank output stream. More... | |
#define | GEOSX_LOG_RANK(msg) GEOSX_LOG_RANK_IF( true, msg ) |
Log a message to the rank output stream. More... | |
#define | GEOSX_LOG_RANK_VAR(var) GEOSX_LOG_RANK( #var " = " << var ) |
Log a variable/expression name and value on screen to the rank output stream. More... | |
#define | GEOSX_ERROR_IF(EXP, msg) LVARRAY_ERROR_IF( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Conditionally raise a hard error and terminate the program. More... | |
#define | GEOSX_ERROR(msg) GEOSX_ERROR_IF( true, msg ) |
Raise a hard error and terminate the program. More... | |
#define | GEOSX_ASSERT_MSG(EXP, msg) LVARRAY_ASSERT_MSG( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert a condition in debug builds. More... | |
#define | GEOSX_ASSERT(EXP) GEOSX_ASSERT_MSG( EXP, "" ) |
Assert a condition in debug builds. More... | |
#define | GEOSX_WARNING_IF(EXP, msg) LVARRAY_WARNING_IF( EXP, msg ) |
Conditionally report a warning. More... | |
#define | GEOSX_WARNING(msg) LVARRAY_WARNING( msg ) |
Report a warning. More... | |
#define | GEOSX_INFO_IF(EXP, msg) LVARRAY_INFO_IF( EXP, msg ) |
Conditionally log an info message. More... | |
#define | GEOSX_INFO(msg) LVARRAY_INFO( msg ) |
Log an info message. More... | |
#define | GEOSX_ERROR_IF_EQ_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if two values are equal. More... | |
#define | GEOSX_ERROR_IF_EQ(lhs, rhs) GEOSX_ERROR_IF_EQ_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are equal. More... | |
#define | GEOSX_ERROR_IF_NE_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if two values are not equal. More... | |
#define | GEOSX_ERROR_IF_NE(lhs, rhs) GEOSX_ERROR_IF_NE_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are not equal. More... | |
#define | GEOSX_ERROR_IF_GT_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares greater than the other. More... | |
#define | GEOSX_ERROR_IF_GT(lhs, rhs) GEOSX_ERROR_IF_GT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than the other. More... | |
#define | GEOSX_ERROR_IF_GE_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares greater than or equal to the other. More... | |
#define | GEOSX_ERROR_IF_GE(lhs, rhs) GEOSX_ERROR_IF_GE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than or equal to the other. More... | |
#define | GEOSX_ERROR_IF_LT_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares less than the other. More... | |
#define | GEOSX_ERROR_IF_LT(lhs, rhs) GEOSX_ERROR_IF_LT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than the other. More... | |
#define | GEOSX_ERROR_IF_LE_MSG(lhs, rhs, msg) LVARRAY_ERROR_IF_LE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares less than or equal to the other. More... | |
#define | GEOSX_ERROR_IF_LE(lhs, rhs) GEOSX_ERROR_IF_LE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than or equal to the other. More... | |
#define | GEOSX_ASSERT_EQ_MSG(lhs, rhs, msg) LVARRAY_ASSERT_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that two values compare equal in debug builds. More... | |
#define | GEOSX_ASSERT_EQ(lhs, rhs) GEOSX_ASSERT_EQ_MSG( lhs, rhs, "" ) |
Assert that two values compare equal in debug builds. More... | |
#define | GEOSX_ASSERT_NE_MSG(lhs, rhs, msg) LVARRAY_ASSERT_NE_MSG( lhs, rhs, msg ) |
Assert that two values compare not equal in debug builds. More... | |
#define | GEOSX_ASSERT_NE(lhs, rhs) LVARRAY_ASSERT_NE( lhs, rhs ) |
Assert that two values compare not equal in debug builds. More... | |
#define | GEOSX_ASSERT_GT_MSG(lhs, rhs, msg) LVARRAY_ASSERT_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that one value compares greater than the other in debug builds. More... | |
#define | GEOSX_ASSERT_GT(lhs, rhs) GEOSX_ASSERT_GT_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than the other in debug builds. More... | |
#define | GEOSX_ASSERT_GE_MSG(lhs, rhs, msg) LVARRAY_ASSERT_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that one value compares greater than or equal to the other in debug builds. More... | |
#define | GEOSX_ASSERT_GE(lhs, rhs) GEOSX_ASSERT_GE_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than or equal to the other in debug builds. More... | |
#define | GEOSX_LOG_LEVEL_FN(minLevel, fn) |
Macro used to turn on/off a function based on the log level. More... | |
#define | GEOSX_LOG_LEVEL(minLevel, msg) GEOSX_INFO_IF( this->getLogLevel() >= minLevel, msg ); |
Output messages based on current Group's log level. More... | |
#define | GEOSX_LOG_LEVEL_RANK_0(minLevel, msg) GEOSX_LOG_RANK_0_IF( this->getLogLevel() >= minLevel, msg ) |
Output messages (only on rank 0) based on current Group's log level. More... | |
#define | GEOSX_LOG_LEVEL_BY_RANK(minLevel, msg) GEOSX_LOG_RANK_IF( this->getLogLevel() >= minLevel, msg ) |
Output messages (with one line per rank) based on current Group's log level. More... | |
Functions | |
void | geosx::logger::InitializeLogger (const std::string &rank_output_dir="") |
Initialize the logger in a serial build. More... | |
void | geosx::logger::FinalizeLogger () |
Finalize the logger and close the rank streams. | |
#define GEOSX_ASSERT | ( | EXP | ) | GEOSX_ASSERT_MSG( EXP, "" ) |
Assert a condition in debug builds.
EXP | an expression that will be evaluated as a predicate |
Definition at line 123 of file Logger.hpp.
#define GEOSX_ASSERT_EQ | ( | lhs, | |
rhs | |||
) | GEOSX_ASSERT_EQ_MSG( lhs, rhs, "" ) |
Assert that two values compare equal in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 254 of file Logger.hpp.
#define GEOSX_ASSERT_EQ_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ASSERT_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that two values compare equal in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 247 of file Logger.hpp.
#define GEOSX_ASSERT_GE | ( | lhs, | |
rhs | |||
) | GEOSX_ASSERT_GE_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than or equal to the other in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 299 of file Logger.hpp.
#define GEOSX_ASSERT_GE_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ASSERT_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that one value compares greater than or equal to the other in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 292 of file Logger.hpp.
#define GEOSX_ASSERT_GT | ( | lhs, | |
rhs | |||
) | GEOSX_ASSERT_GT_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than the other in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 284 of file Logger.hpp.
#define GEOSX_ASSERT_GT_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ASSERT_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert that one value compares greater than the other in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 277 of file Logger.hpp.
#define GEOSX_ASSERT_MSG | ( | EXP, | |
msg | |||
) | LVARRAY_ASSERT_MSG( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Assert a condition in debug builds.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 117 of file Logger.hpp.
#define GEOSX_ASSERT_NE | ( | lhs, | |
rhs | |||
) | LVARRAY_ASSERT_NE( lhs, rhs ) |
Assert that two values compare not equal in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 269 of file Logger.hpp.
#define GEOSX_ASSERT_NE_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ASSERT_NE_MSG( lhs, rhs, msg ) |
Assert that two values compare not equal in debug builds.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 262 of file Logger.hpp.
#define GEOSX_ERROR | ( | msg | ) | GEOSX_ERROR_IF( true, msg ) |
Raise a hard error and terminate the program.
msg | a message to log (any expression that can be stream inserted) |
Definition at line 110 of file Logger.hpp.
#define GEOSX_ERROR_IF | ( | EXP, | |
msg | |||
) | LVARRAY_ERROR_IF( EXP, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Conditionally raise a hard error and terminate the program.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 103 of file Logger.hpp.
#define GEOSX_ERROR_IF_EQ | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_EQ_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are equal.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 164 of file Logger.hpp.
#define GEOSX_ERROR_IF_EQ_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_EQ_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if two values are equal.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 157 of file Logger.hpp.
#define GEOSX_ERROR_IF_GE | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_GE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than or equal to the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 209 of file Logger.hpp.
#define GEOSX_ERROR_IF_GE_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_GE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares greater than or equal to the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 202 of file Logger.hpp.
#define GEOSX_ERROR_IF_GT | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_GT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 194 of file Logger.hpp.
#define GEOSX_ERROR_IF_GT_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_GT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares greater than the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 187 of file Logger.hpp.
#define GEOSX_ERROR_IF_LE | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_LE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than or equal to the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 239 of file Logger.hpp.
#define GEOSX_ERROR_IF_LE_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_LE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares less than or equal to the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 232 of file Logger.hpp.
#define GEOSX_ERROR_IF_LT | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_LT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 224 of file Logger.hpp.
#define GEOSX_ERROR_IF_LT_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_LT_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if one value compares less than the other.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 217 of file Logger.hpp.
#define GEOSX_ERROR_IF_NE | ( | lhs, | |
rhs | |||
) | GEOSX_ERROR_IF_NE_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are not equal.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 179 of file Logger.hpp.
#define GEOSX_ERROR_IF_NE_MSG | ( | lhs, | |
rhs, | |||
msg | |||
) | LVARRAY_ERROR_IF_NE_MSG( lhs, rhs, "***** Rank " << ::geosx::logger::internal::rankString << ": " << msg ) |
Raise a hard error if two values are not equal.
lhs | expression to be evaluated and used as left-hand side in comparison |
rhs | expression to be evaluated and used as right-hand side in comparison |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 172 of file Logger.hpp.
#define GEOSX_INFO | ( | msg | ) | LVARRAY_INFO( msg ) |
Log an info message.
msg | a message to log (any expression that can be stream inserted) |
Definition at line 149 of file Logger.hpp.
#define GEOSX_INFO_IF | ( | EXP, | |
msg | |||
) | LVARRAY_INFO_IF( EXP, msg ) |
Conditionally log an info message.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 143 of file Logger.hpp.
#define GEOSX_LOG | ( | ... | ) | LVARRAY_LOG( __VA_ARGS__ ) |
Log a message on screen.
The expression to log must evaluate something that can be stream inserted.
Definition at line 35 of file Logger.hpp.
#define GEOSX_LOG_LEVEL | ( | minLevel, | |
msg | |||
) | GEOSX_INFO_IF( this->getLogLevel() >= minLevel, msg ); |
Output messages based on current Group's log level.
[in] | minLevel | minimum log level |
[in] | msg | a message to log (any expression that can be stream inserted) |
Definition at line 319 of file Logger.hpp.
#define GEOSX_LOG_LEVEL_BY_RANK | ( | minLevel, | |
msg | |||
) | GEOSX_LOG_RANK_IF( this->getLogLevel() >= minLevel, msg ) |
Output messages (with one line per rank) based on current Group's log level.
[in] | minLevel | minimum log level |
[in] | msg | a message to log (any expression that can be stream inserted) |
Definition at line 333 of file Logger.hpp.
#define GEOSX_LOG_LEVEL_FN | ( | minLevel, | |
fn | |||
) |
Macro used to turn on/off a function based on the log level.
[in] | minLevel | Minimum log level |
[in] | fn | Function to filter |
Definition at line 306 of file Logger.hpp.
#define GEOSX_LOG_LEVEL_RANK_0 | ( | minLevel, | |
msg | |||
) | GEOSX_LOG_RANK_0_IF( this->getLogLevel() >= minLevel, msg ) |
Output messages (only on rank 0) based on current Group's log level.
[in] | minLevel | minimum log level |
[in] | msg | a message to log (any expression that can be stream inserted) |
Definition at line 326 of file Logger.hpp.
#define GEOSX_LOG_RANK | ( | msg | ) | GEOSX_LOG_RANK_IF( true, msg ) |
Log a message to the rank output stream.
msg | a message to log (any expression that can be stream inserted) |
Definition at line 87 of file Logger.hpp.
#define GEOSX_LOG_RANK_0 | ( | msg | ) | GEOSX_LOG_RANK_0_IF( true, msg ) |
Log a message on screen on rank 0.
msg | a message to log (any expression that can be stream inserted) |
Definition at line 62 of file Logger.hpp.
#define GEOSX_LOG_RANK_0_IF | ( | EXP, | |
msg | |||
) |
Conditionally log a message on screen on rank 0.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 48 of file Logger.hpp.
#define GEOSX_LOG_RANK_IF | ( | EXP, | |
msg | |||
) |
Conditionally log a message to the rank output stream.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 72 of file Logger.hpp.
#define GEOSX_LOG_RANK_VAR | ( | var | ) | GEOSX_LOG_RANK( #var " = " << var ) |
Log a variable/expression name and value on screen to the rank output stream.
var | a variable or expression accessible from current scope that can be stream inserted |
Definition at line 93 of file Logger.hpp.
#define GEOSX_LOG_VAR | ( | ... | ) | LVARRAY_LOG_VAR( __VA_ARGS__ ) |
Log an expression and its value on screen.
The expression to log must evaluate something that can be stream inserted.
Definition at line 41 of file Logger.hpp.
#define GEOSX_WARNING | ( | msg | ) | LVARRAY_WARNING( msg ) |
Report a warning.
msg | a message to log (any expression that can be stream inserted) |
Definition at line 136 of file Logger.hpp.
#define GEOSX_WARNING_IF | ( | EXP, | |
msg | |||
) | LVARRAY_WARNING_IF( EXP, msg ) |
Conditionally report a warning.
EXP | an expression that will be evaluated as a predicate |
msg | a message to log (any expression that can be stream inserted) |
Definition at line 130 of file Logger.hpp.
void geosx::logger::InitializeLogger | ( | const std::string & | rank_output_dir = "" | ) |
Initialize the logger in a serial build.
rank_output_dir | output directory for rank log files |