|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
Classes | |
| struct | axom::slic::detail::FalseType |
| Variable of a type that evaluates as false. More... | |
Namespaces | |
| axom | |
| axom::slic | |
| axom::slic::detail | |
Macros | |
| #define | SLIC_INFO(msg) SLIC_INFO_IF(true, msg) |
| Logs an Info message. More... | |
| #define | SLIC_INFO_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, true, msg) |
| Logs an Info message only once per call site. More... | |
| #define | SLIC_INFO_TAGGED(msg, tag) |
| Logs an Info message to a tagged stream. More... | |
| #define | SLIC_INFO_TAGGED_ONCE(msg, tag) |
| Logs an Info message to a tagged stream only once per call site. More... | |
| #define | SLIC_INFO_IF(EXP, msg) |
| Logs an Info message iff EXP is true. More... | |
| #define | SLIC_INFO_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, EXP, msg) |
| Logs an Info message iff EXP is true, only once per call site. More... | |
| #define | SLIC_INFO_ROOT(msg) SLIC_INFO_IF(axom::slic::isRoot(), msg) |
| Logs an Info message if on root. More... | |
| #define | SLIC_INFO_ROOT_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, axom::slic::isRoot(), msg) |
| Logs an Info message if on root, only once per call site. More... | |
| #define | SLIC_INFO_ROOT_IF(EXP, msg) SLIC_INFO_IF((EXP) && (axom::slic::isRoot()), msg) |
| Logs an Info message if on root and iff EXP is true. More... | |
| #define | SLIC_INFO_ROOT_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, (EXP) && (axom::slic::isRoot()), msg) |
| Logs an Info message if on root and iff EXP is true, only once per call site. More... | |
| #define | SLIC_DEBUG(msg) SLIC_DEBUG_IF(true, msg) |
| Logs a Debug message. More... | |
| #define | SLIC_DEBUG_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, true, msg) |
| Logs a Debug message only once per call site. More... | |
| #define | SLIC_DEBUG_IF(EXP, msg) |
| Logs an Debug message iff EXP is true. More... | |
| #define | SLIC_DEBUG_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, EXP, msg) |
| Logs an Debug message iff EXP is true only once per call site. More... | |
| #define | SLIC_DEBUG_ROOT(msg) SLIC_DEBUG_IF(axom::slic::isRoot(), msg) |
| Logs a Debug message if on root. More... | |
| #define | SLIC_DEBUG_ROOT_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, axom::slic::isRoot(), msg) |
| Logs a Debug message if on root only once per call site. More... | |
| #define | SLIC_DEBUG_ROOT_IF(EXP, msg) SLIC_DEBUG_IF((EXP) && (axom::slic::isRoot()), msg) |
| Logs a Debug message if on root and iff EXP is true. More... | |
| #define | SLIC_DEBUG_ROOT_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, (EXP) && (axom::slic::isRoot()), msg) |
| Logs a Debug message if on root and iff EXP is true, only once per call site. More... | |
| #define | SLIC_DEBUG_PRINT_CONTAINER(name, container) |
| Logs a Debug message containing the contents of the container, moving the contents to the host if needed. More... | |
| #define | SLIC_DEBUG_PRINT_CONTAINER_ONCE(name, container) |
| Logs a Debug message containing the contents of the container, moving the contents to the host if needed. Called only once per call site. More... | |
| #define | SLIC_DETAIL_LOG_IF_ONCE(macro, EXP, msg) |
| Helper macro to define SLIC_*_ONCE macros that log only the first time they are used. More... | |
SLIC_ERROR MACROS | |
| |
| #define | SLIC_ERROR(msg) SLIC_ERROR_IF(true, msg) |
| Logs an error and aborts the application. More... | |
| #define | SLIC_ERROR_IF(EXP, msg) |
| Logs an error iff EXP is true and aborts the application. More... | |
| #define | SLIC_ERROR_ROOT(msg) SLIC_ERROR_IF(axom::slic::isRoot(), msg) |
| Macro that logs given error message only on root. More... | |
| #define | SLIC_ERROR_ROOT_IF(EXP, msg) SLIC_ERROR_IF((EXP) && (axom::slic::isRoot()), msg) |
| Macro that logs given error message only on root iff EXP is true. More... | |
SLIC_WARNING MACROS | |
| |
| #define | SLIC_WARNING(msg) SLIC_WARNING_IF(true, msg) |
| Logs a warning message. More... | |
| #define | SLIC_WARNING_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, true, msg) |
| Logs a warning message only once per call site. More... | |
| #define | SLIC_WARNING_IF(EXP, msg) |
| Logs a warning iff EXP is true. More... | |
| #define | SLIC_WARNING_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, EXP, msg) |
| Logs a warning iff EXP is true, and only once per call site. More... | |
| #define | SLIC_WARNING_ROOT(msg) SLIC_WARNING_IF(axom::slic::isRoot(), msg) |
| Macro that logs given warning message only on root. More... | |
| #define | SLIC_WARNING_ROOT_ONCE(msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, axom::slic::isRoot(), msg) |
| Macro that logs given warning message only on root, and only once per call site. More... | |
| #define | SLIC_WARNING_ROOT_IF(EXP, msg) SLIC_WARNING_IF((EXP) && (axom::slic::isRoot()), msg) |
| Macro that logs given warning message only on root iff EXP is true. More... | |
| #define | SLIC_WARNING_ROOT_IF_ONCE(EXP, msg) SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, (EXP) && (axom::slic::isRoot()), msg) |
| Macro that logs given warning message only on root iff EXP is true, and only once per call site. More... | |
SLIC_ASSERT MACROS | |
| |
| #define | SLIC_ASSERT(EXP) SLIC_ASSERT_MSG(EXP, "") |
| Asserts that a given expression is true. If the expression is not true an error will be logged and the application will be aborted. More... | |
| #define | SLIC_ASSERT_MSG(EXP, msg) |
| Same as SLIC_ASSERT, but with a custom error message. More... | |
SLIC_CHECK MACROS | |
These check macros must then be called by all ranks in the user-supplied communicator when used within an MPI distributed environment. | |
| #define | SLIC_CHECK(EXP) SLIC_CHECK_MSG(EXP, "") |
| Checks that a given expression is true. If the expression is not true a warning is logged, but, in contrast to the similar SLIC_ASSERT macro the application is not aborted. More... | |
| #define | SLIC_CHECK_MSG(EXP, msg) |
| Same as SLIC_CHECK, but with a custom error message. More... | |
Variables | |
| static const FalseType | axom::slic::detail::false_value |
| #define SLIC_ERROR | ( | msg | ) | SLIC_ERROR_IF(true, msg) |
Logs an error and aborts the application.
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_ERROR_IF | ( | EXP, | |
| msg | |||
| ) |
Logs an error iff EXP is true and aborts the application.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_ERROR_ROOT | ( | msg | ) | SLIC_ERROR_IF(axom::slic::isRoot(), msg) |
Macro that logs given error message only on root.
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_ERROR_ROOT_IF | ( | EXP, | |
| msg | |||
| ) | SLIC_ERROR_IF((EXP) && (axom::slic::isRoot()), msg) |
Macro that logs given error message only on root iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_WARNING | ( | msg | ) | SLIC_WARNING_IF(true, msg) |
Logs a warning message.
| [in] | msg | user-supplied message |
slic::enableAbortOnWarning()Usage:
| #define SLIC_WARNING_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, true, msg) |
Logs a warning message only once per call site.
| [in] | msg | user-supplied message |
slic::enableAbortOnWarning()Usage:
| #define SLIC_WARNING_IF | ( | EXP, | |
| msg | |||
| ) |
Logs a warning iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
slic::enableAbortOnWarning()Usage:
| #define SLIC_WARNING_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, EXP, msg) |
Logs a warning iff EXP is true, and only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
slic::enableAbortOnWarning()Usage:
| #define SLIC_WARNING_ROOT | ( | msg | ) | SLIC_WARNING_IF(axom::slic::isRoot(), msg) |
Macro that logs given warning message only on root.
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_WARNING_ROOT_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, axom::slic::isRoot(), msg) |
Macro that logs given warning message only on root, and only once per call site.
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_WARNING_ROOT_IF | ( | EXP, | |
| msg | |||
| ) | SLIC_WARNING_IF((EXP) && (axom::slic::isRoot()), msg) |
Macro that logs given warning message only on root iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_WARNING_ROOT_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_WARNING_IF, (EXP) && (axom::slic::isRoot()), msg) |
Macro that logs given warning message only on root iff EXP is true, and only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
axom::slic::initialize(is_root={true|false}) or set via axom::slic::setIsRoot({true|false}) to filter based on root.Usage:
| #define SLIC_ASSERT | ( | EXP | ) | SLIC_ASSERT_MSG(EXP, "") |
Asserts that a given expression is true. If the expression is not true an error will be logged and the application will be aborted.
| [in] | EXP | user-supplied boolean expression. |
Usage:
| #define SLIC_ASSERT_MSG | ( | EXP, | |
| msg | |||
| ) |
Same as SLIC_ASSERT, but with a custom error message.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_CHECK | ( | EXP | ) | SLIC_CHECK_MSG(EXP, "") |
Checks that a given expression is true. If the expression is not true a warning is logged, but, in contrast to the similar SLIC_ASSERT macro the application is not aborted.
| [in] | EXP | user-supplied boolean expression. |
Usage:
| #define SLIC_CHECK_MSG | ( | EXP, | |
| msg | |||
| ) |
Same as SLIC_CHECK, but with a custom error message.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_INFO | ( | msg | ) | SLIC_INFO_IF(true, msg) |
| #define SLIC_INFO_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, true, msg) |
Logs an Info message only once per call site.
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_INFO_TAGGED | ( | msg, | |
| tag | |||
| ) |
Logs an Info message to a tagged stream.
| [in] | msg | user-supplied message |
| [in] | tag | user-supplied tag |
Usage:
| #define SLIC_INFO_TAGGED_ONCE | ( | msg, | |
| tag | |||
| ) |
Logs an Info message to a tagged stream only once per call site.
| [in] | msg | user-supplied message |
| [in] | tag | user-supplied tag |
Usage:
| #define SLIC_INFO_IF | ( | EXP, | |
| msg | |||
| ) |
Logs an Info message iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_INFO_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, EXP, msg) |
Logs an Info message iff EXP is true, only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_INFO_ROOT | ( | msg | ) | SLIC_INFO_IF(axom::slic::isRoot(), msg) |
Logs an Info message if on root.
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_INFO_ROOT_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, axom::slic::isRoot(), msg) |
Logs an Info message if on root, only once per call site.
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_INFO_ROOT_IF | ( | EXP, | |
| msg | |||
| ) | SLIC_INFO_IF((EXP) && (axom::slic::isRoot()), msg) |
Logs an Info message if on root and iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_INFO_ROOT_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_INFO_IF, (EXP) && (axom::slic::isRoot()), msg) |
Logs an Info message if on root and iff EXP is true, only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG | ( | msg | ) | SLIC_DEBUG_IF(true, msg) |
Logs a Debug message.
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_DEBUG_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, true, msg) |
Logs a Debug message only once per call site.
| [in] | msg | user-supplied message |
Usage:
| #define SLIC_DEBUG_IF | ( | EXP, | |
| msg | |||
| ) |
Logs an Debug message iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, EXP, msg) |
Logs an Debug message iff EXP is true only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_ROOT | ( | msg | ) | SLIC_DEBUG_IF(axom::slic::isRoot(), msg) |
Logs a Debug message if on root.
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_ROOT_ONCE | ( | msg | ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, axom::slic::isRoot(), msg) |
Logs a Debug message if on root only once per call site.
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_ROOT_IF | ( | EXP, | |
| msg | |||
| ) | SLIC_DEBUG_IF((EXP) && (axom::slic::isRoot()), msg) |
Logs a Debug message if on root and iff EXP is true.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_ROOT_IF_ONCE | ( | EXP, | |
| msg | |||
| ) | SLIC_DETAIL_LOG_IF_ONCE(SLIC_DEBUG_IF, (EXP) && (axom::slic::isRoot()), msg) |
Logs a Debug message if on root and iff EXP is true, only once per call site.
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |
Usage:
| #define SLIC_DEBUG_PRINT_CONTAINER | ( | name, | |
| container | |||
| ) |
Logs a Debug message containing the contents of the container, moving the contents to the host if needed.
| [in] | name | The name of the container in the printed message. |
| [in] | container | The container (array, vector, view). |
Usage:
| #define SLIC_DEBUG_PRINT_CONTAINER_ONCE | ( | name, | |
| container | |||
| ) |
Logs a Debug message containing the contents of the container, moving the contents to the host if needed. Called only once per call site.
| [in] | name | The name of the container in the printed message. |
| [in] | container | The container (array, vector, view). |
Usage:
| #define SLIC_DETAIL_LOG_IF_ONCE | ( | macro, | |
| EXP, | |||
| msg | |||
| ) |
Helper macro to define SLIC_*_ONCE macros that log only the first time they are used.
| [in] | macro | the macro to call. |
| [in] | EXP | user-supplied boolean expression. |
| [in] | msg | user-supplied message. |