48 #ifdef HAVE_XPETRA_EPETRA
56 #include <Teuchos_OpaqueWrapper.hpp>
58 #include <Teuchos_DefaultSerialComm.hpp>
60 #include <Epetra_MpiComm.h>
62 #include <Epetra_SerialComm.h>
74 if (mpiComm != Teuchos::null) {
90 const int MAGIC_TAG = 26077;
91 return Teuchos::rcp(
new Teuchos::MpiComm<int>(Teuchos::opaqueWrapper(mpiComm.
Comm()), MAGIC_TAG));
92 }
catch (std::bad_cast & ) {}
98 }
catch (std::bad_cast & ) {
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
const Epetra_CrsGraph & toEpetra(const RCP< const CrsGraph< int, GlobalOrdinal, Node > > &graph)
Exception indicating invalid cast attempted.
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Exception throws when you call an unimplemented method of Xpetra.
RCP< const CrsGraph< int, GlobalOrdinal, Node > > toXpetra(const Epetra_CrsGraph &g)