Tpetra Matrix/Vector Services Version of the Day
Public Types | Static Public Member Functions
Tpetra::DefaultPlatform Class Reference

Returns a default platform appropriate for the enviroment. More...

#include <Tpetra_DefaultPlatform.hpp>

List of all members.

Public Types

typedef SerialPlatform
< Kokkos::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.

Static Public Member Functions

static DefaultPlatformTypegetDefaultPlatform ()
 Return the default platform.

Detailed Description

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.


Member Typedef Documentation

typedef SerialPlatform<Kokkos::DefaultNode::DefaultNodeType> Tpetra::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 68 of file Tpetra_DefaultPlatform.hpp.


Member Function Documentation

DefaultPlatform::DefaultPlatformType & Tpetra::DefaultPlatform::getDefaultPlatform ( ) [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines