Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::DefaultPlatform Class Reference

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

#include <Xpetra_DefaultPlatform.hpp>

Public Types

typedef SerialPlatform< KokkosClassic::DefaultNode::DefaultNodeTypeDefaultPlatformType
 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.
 

Static Private Attributes

static Teuchos::RCP< DefaultPlatformTypeplatform_ = Teuchos::null
 

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 68 of file Xpetra_DefaultPlatform.hpp.

Member Typedef Documentation

◆ 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 74 of file Xpetra_DefaultPlatform.hpp.

Member Function Documentation

◆ getDefaultPlatform()

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

Return the default platform.

Definition at line 53 of file Xpetra_DefaultPlatform.cpp.

Member Data Documentation

◆ platform_

Teuchos::RCP< Xpetra::DefaultPlatform::DefaultPlatformType > Xpetra::DefaultPlatform::platform_ = Teuchos::null
staticprivate

Definition at line 83 of file Xpetra_DefaultPlatform.hpp.


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