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>();
bool nonnull(const boost::shared_ptr< T > &p)
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...