Tpetra parallel linear algebra
Version of the Day
|
SerialPlatform specialization for the default Node type. More...
#include <Tpetra_SerialPlatform.hpp>
Inherits Describable.
Public Types | |
Typedefs | |
typedef Tpetra::Details::DefaultTypes::node_type | NodeType |
Kokkos Node type; the template parameter of this class. More... | |
Public Member Functions | |
Constructors and destructor | |
SerialPlatform () | |
Default constructor: uses Kokkos default node. More... | |
SerialPlatform (int *argc, char ***argv) | |
Constructor that accepts the same arguments as Tpetra::initialize(). More... | |
SerialPlatform (const Teuchos::RCP< NodeType > &node) | |
Constructor that accepts a Kokkos Node. More... | |
SerialPlatform (int *argc, char ***argv, const Teuchos::RCP< NodeType > &node) | |
Constructor that accepts the same arguments as Tpetra::initialize(), plus a Kokkos Node. More... | |
virtual | ~SerialPlatform () |
Destructor (virtual for memory safety of derived classes). More... | |
Methods to access the communicator and Kokkos Node. | |
Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const |
The Teuchos::Comm instance with which this object was created. More... | |
Teuchos::RCP< Tpetra::Details::DefaultTypes::node_type > | getNode () const |
The Kokkos Node instance with which this object was created. More... | |
Protected Attributes | |
Teuchos::RCP< const Teuchos::Comm< int > > | comm_ |
Teuchos::Comm object instantiated for the platform. More... | |
Teuchos::RCP< NodeType > | node_ |
Node object instantiated for the platform. More... | |
SerialPlatform specialization for the default Node type.
Definition at line 216 of file Tpetra_SerialPlatform.hpp.
typedef Tpetra::Details::DefaultTypes::node_type Tpetra::SerialPlatform< Tpetra::Details::DefaultTypes::node_type >::NodeType |
Kokkos Node type; the template parameter of this class.
Definition at line 223 of file Tpetra_SerialPlatform.hpp.
Default constructor: uses Kokkos default node.
The specialization of SerialPlatform for the default Node type includes a default constructor. At some point before the first call to getNode() returns, this class will create a Node with default parameters.
Definition at line 235 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts the same arguments as Tpetra::initialize().
argc | [in/out] First argument of Tpetra::initialize(). |
argv | [in/out] Second argument of Tpetra::initialize(). |
Definition at line 252 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts a Kokkos Node.
This version of the constructor is declared "explicit" to forbid silent type conversions from the Node instance to a SerialPlatform. (A single-argument constructor that is not declared "explicit" defines a type conversion method from the input type to the constructor's class's type.) The "explicit" declaration does not affect typical use of this constructor.
node | [in/out] The Kokkos Node instance. If null, this class will create a Node with default parameters, at some time no later than during the first call to getNode(). |
Definition at line 273 of file Tpetra_SerialPlatform.hpp.
|
inlineexplicit |
Constructor that accepts the same arguments as Tpetra::initialize(), plus a Kokkos Node.
argc | [in/out] First argument of Tpetra::initialize(). |
argv | [in/out] Second argument of Tpetra::initialize(). |
node | [in/out] The Kokkos Node instance. If null, this class will create a Node with default parameters, at some time no later than during the first call to getNode(). |
Definition at line 288 of file Tpetra_SerialPlatform.hpp.
|
inlinevirtual |
Destructor (virtual for memory safety of derived classes).
Definition at line 299 of file Tpetra_SerialPlatform.hpp.
|
inline |
The Teuchos::Comm instance with which this object was created.
Definition at line 306 of file Tpetra_SerialPlatform.hpp.
|
inline |
The Kokkos Node instance with which this object was created.
Definition at line 311 of file Tpetra_SerialPlatform.hpp.
|
protected |
Teuchos::Comm object instantiated for the platform.
Definition at line 347 of file Tpetra_SerialPlatform.hpp.
|
protected |
Node object instantiated for the platform.
Definition at line 350 of file Tpetra_SerialPlatform.hpp.