Go to the documentation of this file. 46 #ifndef XPETRA_EPETRAEXCEPTIONS_HPP 47 #define XPETRA_EPETRAEXCEPTIONS_HPP 51 #ifndef HAVE_XPETRA_EPETRA 52 #error This file should be included only if HAVE_XPETRA_EPETRA is defined. 61 #define IF_EPETRA_EXCEPTION_THEN_THROW_GLOBAL_INVALID_ARG(sourceCode) \ 63 int localFailure = 0; \ 72 int globalFailure = 0; \ 73 Teuchos::reduceAll<int>(*comm, Teuchos::REDUCE_SUM, localFailure, Teuchos::outArg(globalFailure)); \ 74 TEUCHOS_TEST_FOR_EXCEPTION(globalFailure != 0, std::invalid_argument, "Epetra threw exception"); \