55 #ifndef EPETRA_TSQRMESSENGER_HPP
56 #define EPETRA_TSQRMESSENGER_HPP
58 #include <Tpetra_ConfigDefs.hpp>
60 #if !defined(TPETRA_ENABLE_DEPRECATED_CODE)
61 #error This file is deprecated due to Epetra removal and will be removed
64 #if defined(TPETRA_ENABLE_DEPRECATED_CODE) && defined(HAVE_TPETRA_EPETRA) && defined(HAVE_TPETRA_TSQR)
67 #include <Epetra_Comm.h>
70 #include <Teuchos_Comm.hpp>
72 #include <Teuchos_RCP.hpp>
73 #include <Tsqr_TeuchosMessenger.hpp>
87 TPETRA_DEPRECATED_MSG(
"epetra removal")
88 Teuchos::RCP<const Teuchos::Comm<
int> >
89 extractTeuchosComm (const Teuchos::RCP<const Epetra_Comm>& epetraComm);
93 TPETRA_DEPRECATED_MSG("epetra removal")
94 Teuchos::RCP<TSQR::MessengerBase<Datum> >
95 makeTsqrMessenger (const Teuchos::RCP<const Epetra_Comm>& pComm)
97 typedef TSQR::MessengerBase<Datum> base_mess_type;
98 typedef TSQR::TeuchosMessenger<Datum> mess_type;
100 Teuchos::RCP<mess_type> pMess =
101 Teuchos::rcp (
new mess_type (extractTeuchosComm (pComm)));
102 return Teuchos::rcp_implicit_cast<base_mess_type> (pMess);
107 #endif // defined(TPETRA_ENABLE_DEPRECATED_CODE) && defined(HAVE_TPETRA_EPETRA) && defined(HAVE_TPETRA_TSQR)
109 #endif // EPETRA_TSQRMESSENGER_HPP