26 bool& loc_enableStackTrace()
28 static bool static_enableStackTrace =
29 #ifdef HAVE_TEUCHOS_DEFAULT_STACKTRACE
35 return static_enableStackTrace;
59 break_on_me = errorMsg.length();
75 loc_enableStackTrace() = enableStrackTrace;
81 return loc_enableStackTrace();
85 std::ostringstream omsg;
86 if (GlobalMPISession::getNProc() > 1) {
87 omsg <<
"p="<<GlobalMPISession::getRank()<<
": ";
90 std::cerr << omsg.str();
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_setEnableStacktrace(bool enableStrackTrace)
Set at runtime if stacktracing functionality is enabled when * exceptions are thrown.
TEUCHOSCORE_LIB_DLL_EXPORT void TestForTermination_terminate(const std::string &msg)
Prints the message to std::cerr and calls std::terminate.
TEUCHOSCORE_LIB_DLL_EXPORT int TestForException_getThrowNumber()
Increment the throw number.
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_incrThrowNumber()
Increment the throw number.
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_break(const std::string &msg, int throwNumber)
The only purpose for this function is to set a breakpoint.
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
Standard test and throw macros.
TEUCHOSCORE_LIB_DLL_EXPORT bool TestForException_getEnableStacktrace()
Get at runtime if stacktracing functionality is enabled when exceptions are thrown.