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