|
Tpetra Matrix/Vector Services
Version of the Day
|
A platform class for hybrid nodes. More...
#include <Tpetra_HybridPlatform.hpp>
Inherits Describable.
Public Member Functions | |
Constructor/Destructor Methods | |
| HybridPlatform (const Teuchos::RCP< const Teuchos::Comm< int > > &comm, Teuchos::ParameterList &pl) | |
| Constructor. | |
| ~HybridPlatform () | |
| Destructor. | |
Class Query, Creation and Accessor Methods | |
| Teuchos::RCP< const Teuchos::Comm< int > > | getComm () const |
| Comm Instance. | |
| template<template< class Node > class UserCode> | |
| void | runUserCode () |
| Run user code with the runtime-selected Node type. | |
| template<class UserCode > | |
| void | runUserCode (UserCode &code) |
| Run user code with the runtime-selected Node type. | |
| static Teuchos::RCP < Teuchos::ParameterList > | listSupportedNodes () |
| List of supported nodes and their valid parameters. | |
| template<class Node > | |
| static bool | isNodeSupported () |
Whether HybridPlatform supports the given Node type. | |
A platform class for hybrid nodes.
Definition at line 72 of file Tpetra_HybridPlatform.hpp.
| Tpetra::HybridPlatform::HybridPlatform | ( | const Teuchos::RCP< const Teuchos::Comm< int > > & | comm, |
| Teuchos::ParameterList & | pl | ||
| ) |
Constructor.
Definition at line 66 of file Tpetra_HybridPlatform.cpp.
Destructor.
Definition at line 193 of file Tpetra_HybridPlatform.cpp.
| Teuchos::RCP< const Teuchos::Comm< int > > Tpetra::HybridPlatform::getComm | ( | ) | const |
Comm Instance.
Definition at line 241 of file Tpetra_HybridPlatform.cpp.
| RCP< ParameterList > Tpetra::HybridPlatform::listSupportedNodes | ( | ) | [static] |
List of supported nodes and their valid parameters.
Definition at line 196 of file Tpetra_HybridPlatform.cpp.
| bool Tpetra::HybridPlatform::isNodeSupported | ( | ) | [static] |
Whether HybridPlatform supports the given Node type.
Definition at line 179 of file Tpetra_HybridPlatform.hpp.
| void Tpetra::HybridPlatform::runUserCode | ( | ) |
Run user code with the runtime-selected Node type.
This method assumes that UserCode is a class with a template parameter Node, which has a class ("static") method run():
template<class Node> class UserCode { public: static void run (Teuchos::ParameterList& plist, Teuchos::RCP<const Teuchos::Comm<int> > comm, Teuchos::RCP<Node> node); };
Note that this method depends on the "template parameter that takes a template parameter" feature of C++11. Your compiler may or may not support this feature. If it does, you may have to use a special compiler flag to enable the feature.
Definition at line 218 of file Tpetra_HybridPlatform.hpp.
| void Tpetra::HybridPlatform::runUserCode | ( | UserCode & | code | ) |
Run user code with the runtime-selected Node type.
This method, unlike the version of runUserCode that takes no arguments above, assumes that UserCode is a class with an instance (not class) method run():
class UserCode { public: template<class Node> void run (Teuchos::ParameterList& plist, Teuchos::RCP<const Teuchos::Comm<int> > comm, Teuchos::RCP<Node> node); };
Definition at line 185 of file Tpetra_HybridPlatform.hpp.
1.7.6.1