Tpetra parallel linear algebra  Version of the Day
Public Types | Static Public Member Functions | List of all members
Tpetra::DefaultPlatform Class Reference

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

#include <Tpetra_DefaultPlatform.hpp>

Public Types

typedef SerialPlatform< Details::DefaultTypes::node_typeDefaultPlatformType
 The default platform type specified at compile time. More...
 

Static Public Member Functions

static DefaultPlatformTypegetDefaultPlatform ()
 Return a reference to the default platform singleton. More...
 

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

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.

Member Function Documentation

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

Return a reference to the default platform singleton.

Definition at line 51 of file Tpetra_DefaultPlatform.cpp.


The documentation for this class was generated from the following files: