46 #ifndef XPETRA_MPIPLATFORM_HPP
47 #define XPETRA_MPIPLATFORM_HPP
49 #include <Teuchos_DefaultMpiComm.hpp>
50 #include <Teuchos_Describable.hpp>
63 template<
class Node=KokkosClassic::DefaultNode::DefaultNodeType>
75 MpiPlatform(Teuchos::RCP<Node> node,
const Teuchos::RCP<
const Teuchos::OpaqueWrapper<MPI_Comm> > &rawMpiComm);
86 Teuchos::RCP< const Teuchos::Comm<int> >
getComm()
const;
92 Teuchos::RCP<Teuchos::MpiComm<int> >
comm_;
98 comm_ (Teuchos::createMpiComm<int>(rawMpiComm))
101 template <
class Node>
103 comm_ (Teuchos::createMpiComm<int>(Teuchos::opaqueWrapper<MPI_Comm>(MPI_COMM_WORLD)))
106 template <
class Node>
109 template <
class Node>
111 comm_ = platform.
comm_;
114 template <
class Node>
115 Teuchos::RCP< const Teuchos::Comm<int> >
123 #endif // XPETRA_MPIPLATFORM_HPP