Xpetra
Version of the Day
|
Returns a default platform appropriate for the enviroment. More...
#include <Xpetra_DefaultPlatform.hpp>
Public Types | |
typedef SerialPlatform < Tpetra::KokkosClassic::DefaultNode::DefaultNodeType > | DefaultPlatformType |
Typedef indicating the default platform type specified at compile time. For a serial build, this will be SerialPlatform. Otherwise, it will be MpiPlatform. More... | |
Static Public Member Functions | |
static DefaultPlatformType & | getDefaultPlatform () |
Return the default platform. More... | |
Static Private Attributes | |
static Teuchos::RCP < DefaultPlatformType > | platform_ = Teuchos::null |
Returns a default platform appropriate for the enviroment.
The DefaultPlatform mechanism is useful for easily accessing default Comm and Node types on a particular system.
If HAVE_MPI is defined, then an instance of MpiPlatform
will be created. Otherwise, a SerialPlatform
is returned.
Definition at line 32 of file Xpetra_DefaultPlatform.hpp.
typedef SerialPlatform<Tpetra::KokkosClassic::DefaultNode::DefaultNodeType> Xpetra::DefaultPlatform::DefaultPlatformType |
Typedef indicating the default platform type specified at compile time. For a serial build, this will be SerialPlatform. Otherwise, it will be MpiPlatform.
Definition at line 38 of file Xpetra_DefaultPlatform.hpp.
|
static |
Return the default platform.
Definition at line 17 of file Xpetra_DefaultPlatform.cpp.
|
staticprivate |
Definition at line 46 of file Xpetra_DefaultPlatform.hpp.