10 #ifndef XPETRA_MPIPLATFORM_HPP
11 #define XPETRA_MPIPLATFORM_HPP
13 #include <Teuchos_DefaultMpiComm.hpp>
14 #include <Teuchos_Describable.hpp>
15 #include <Tpetra_KokkosCompat_DefaultNode.hpp>
27 template <
class Node = Tpetra::KokkosClassic::DefaultNode::DefaultNodeType>
39 MpiPlatform(Teuchos::RCP<Node> node,
const Teuchos::RCP<
const Teuchos::OpaqueWrapper<MPI_Comm> > &rawMpiComm);
50 Teuchos::RCP<const Teuchos::Comm<int> >
getComm()
const;
55 Teuchos::RCP<Teuchos::MpiComm<int> >
comm_;
61 : comm_(Teuchos::createMpiComm<int>(rawMpiComm)) {}
65 : comm_(Teuchos::createMpiComm<int>(Teuchos::opaqueWrapper<MPI_Comm>(MPI_COMM_WORLD))) {}
72 comm_ = platform.
comm_;
76 Teuchos::RCP<const Teuchos::Comm<int> >
83 #endif // XPETRA_MPIPLATFORM_HPP