[Trilinos-Users] Teuchos MpiComm
Bartlett, Roscoe A.
bartlettra at ornl.gov
Tue Dec 23 11:45:51 MST 2014
> What is the correct way to get the underlying MPI_Comm object here:
>
> Teuchos::RCP<matrix_t> A...;
>
> //doesn't work:
> Teuchos::RCP< const Teuchos::MpiComm< int > > tr_comm = m_A-
> >getComm();
>
> //works, but I don't have an MpiComm:
> Teuchos::RCP< const Teuchos::Comm< int > > tr_comm = m_A->getComm();
>
> //fails because I don't have an MpiComm
> Teuchos::RCP<const Teuchos::OpaqueWrapper<int> > cmm =
> tr_comm->getRawMpiComm();
Teuchos::RCP<const Teuchos::OpaqueWrapper<int> > cmm =
rcp_dynamic_cast<Teuchos::MpiComm<int> > (tr_comm, true)->getRawMpiComm();
-Ross
More information about the Trilinos-Users
mailing list