55 #ifndef EPETRA_TSQRMESSENGER_HPP
56 #define EPETRA_TSQRMESSENGER_HPP
58 #include <Tpetra_ConfigDefs.hpp>
60 #if defined(HAVE_TPETRA_EPETRA) && defined(HAVE_TPETRA_TSQR)
63 #include <Epetra_Comm.h>
66 #include <Teuchos_Comm.hpp>
68 #include <Teuchos_RCP.hpp>
69 #include <Tsqr_TeuchosMessenger.hpp>
83 Teuchos::RCP<const Teuchos::Comm<int> >
84 extractTeuchosComm (
const Teuchos::RCP<const Epetra_Comm>& epetraComm);
88 Teuchos::RCP<TSQR::MessengerBase<Datum> >
89 makeTsqrMessenger (
const Teuchos::RCP<const Epetra_Comm>& pComm)
91 typedef TSQR::MessengerBase<Datum> base_mess_type;
92 typedef TSQR::TeuchosMessenger<Datum> mess_type;
94 Teuchos::RCP<mess_type> pMess =
95 Teuchos::rcp (
new mess_type (extractTeuchosComm (pComm)));
96 return Teuchos::rcp_implicit_cast<base_mess_type> (pMess);
101 #endif // defined(HAVE_TPETRA_EPETRA) && defined(HAVE_TPETRA_TSQR)
103 #endif // EPETRA_TSQRMESSENGER_HPP