Tpetra parallel linear algebra
Version of the Day
|
Returns a default platform appropriate for the enviroment. More...
#include <Tpetra_DefaultPlatform.hpp>
Public Types | |
typedef SerialPlatform< ::Tpetra::Details::DefaultTypes::node_type > | DefaultPlatformType |
The default platform type specified at compile time. More... | |
Static Public Member Functions | |
static DefaultPlatformType & | getDefaultPlatform () |
Return a reference to the default platform singleton. More... | |
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 62 of file Tpetra_DefaultPlatform.hpp.
typedef SerialPlatform< ::Tpetra::Details::DefaultTypes::node_type> Tpetra::DefaultPlatform::DefaultPlatformType |
The default platform type specified at compile time.
For a serial build, this will be SerialPlatform. Otherwise, it will be MpiPlatform.
Definition at line 71 of file Tpetra_DefaultPlatform.hpp.
|
static |
Return a reference to the default platform singleton.
Definition at line 51 of file Tpetra_DefaultPlatform.cpp.