42 #ifndef TPETRA_SERIALPLATFORM_HPP 43 #define TPETRA_SERIALPLATFORM_HPP 45 #include <Tpetra_ConfigDefs.hpp> 47 #include <Kokkos_DefaultNode.hpp> 48 #include <Teuchos_DefaultSerialComm.hpp> 49 #include <Teuchos_Describable.hpp> 139 const Teuchos::RCP<NodeType>& node) :
156 Teuchos::RCP<const Teuchos::Comm<int> >
getComm ()
const {
163 if (
node_.is_null ()) {
176 const_cast<this_type*
> (
this)->
node_ =
177 KokkosClassic::Details::getNode<NodeType> ();
178 TEUCHOS_TEST_FOR_EXCEPTION(
179 node_.is_null (), std::logic_error,
"Tpetra::MpiPlatform::getNode: " 180 "KokkosClassic::Details::getNode<NodeType>() returned null. " 181 "This should never happen. " 182 "Please report this bug to the Tpetra developers.");
190 Teuchos::RCP<const Teuchos::Comm<int> >
comm_;
217 public Teuchos::Describable {
289 const Teuchos::RCP<NodeType>& node) :
306 Teuchos::RCP<const Teuchos::Comm<int> >
getComm()
const {
311 Teuchos::RCP<Tpetra::Details::DefaultTypes::node_type>
getNode ()
const {
313 if (
node_.is_null ()) {
326 const_cast<this_type*
> (
this)->
node_ =
327 KokkosClassic::Details::getNode<NodeType> ();
328 TEUCHOS_TEST_FOR_EXCEPTION(
329 node_.is_null (), std::logic_error,
"Tpetra::MpiPlatform::getNode: " 330 "KokkosClassic::Details::getNode<NodeType>() returned null. " 331 "This should never happen. " 332 "Please report this bug to the Tpetra developers.");
347 Teuchos::RCP<const Teuchos::Comm<int> >
comm_;
355 #endif // TPETRA_SERIALPLATFORM_HPP void initialize(int *argc, char ***argv)
Initialize Tpetra.
Namespace Tpetra contains the class and methods constituting the Tpetra library.
KokkosClassic::DefaultNode::DefaultNodeType node_type
Default value of Node template parameter.
Functions for initializing and finalizing Tpetra.
Teuchos::RCP< const Teuchos::Comm< int > > getDefaultComm()
Get Tpetra's default communicator.