11 #include "Thyra_TpetraThyraWrappers_decl.hpp"
14 #include "Teuchos_DefaultSerialComm.hpp"
16 # include "Teuchos_DefaultMpiComm.hpp"
24 using Teuchos::rcp_dynamic_cast;
28 rcp_dynamic_cast<
const Teuchos::MpiComm<int> >(tpetraComm);
30 return Teuchos::createMpiComm<Ordinal>(tpetraMpiComm->getRawMpiComm(),tpetraMpiComm->getTag());
36 return Teuchos::createSerialComm<Ordinal>();
RCP< const Teuchos::Comm< Ordinal > > convertTpetraToThyraComm(const RCP< const Teuchos::Comm< int > > &tpetraComm)
Given an Tpetra Teuchos::Comm<int> object, return an equivalent Teuchos::Comm<Ordinal> object...
bool nonnull(const boost::shared_ptr< T > &p)