Go to the source code of this file.
#define IF_EPETRA_EXCEPTION_THEN_THROW_GLOBAL_INVALID_ARG |
( |
|
sourceCode | ) |
|
Value:{ \
int localFailure = 0; \
try { \
sourceCode; \
} \
catch (int ) { \
localFailure = 1; \
} \
\
{ \
int globalFailure = 0; \
Teuchos::reduceAll<int>(*comm,
Teuchos::REDUCE_SUM, localFailure, Teuchos::outArg(globalFailure)); \
TEUCHOS_TEST_FOR_EXCEPTION(globalFailure != 0, std::invalid_argument, "Epetra threw exception"); \
} \
}
Definition at line 61 of file Xpetra_EpetraExceptions.hpp.