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 & ) {