Xpetra Version of the Day
Loading...
Searching...
No Matches
Xpetra::MapFactory< int, long long, EpetraNode > Class Reference

#include <Xpetra_MapFactory_decl.hpp>

Static Public Member Functions

static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Build (UnderlyingLib lib, global_size_t numGlobalElements, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=GloballyDistributed)
 
static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Build (UnderlyingLib lib, global_size_t numGlobalElements, size_t numLocalElements, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Build (UnderlyingLib lib, global_size_t numGlobalElements, const Teuchos::ArrayView< const GlobalOrdinal > &elementList, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Build (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &map, LocalOrdinal numDofPerNode)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createLocalMap (UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createLocalMapWithNode (UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createUniformContigMapWithNode (UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createUniformContigMap (UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createContigMap (UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > createContigMapWithNode (UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > copyMapWithNewComm (const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > &oldmap, const Teuchos::RCP< const Teuchos::Comm< int > > &newComm)
 
static Teuchos::RCP< Map< int, long long, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, long long indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm, LocalGlobal lg=Xpetra::GloballyDistributed)
 Map constructor with Xpetra-defined contiguous uniform distribution.
 
static Teuchos::RCP< Map< int, long long, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, size_t numLocalElements, long long indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Map constructor with a user-defined contiguous distribution.
 
static Teuchos::RCP< Map< int, long long, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, const Teuchos::ArrayView< const long long > &elementList, long long indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Map constructor with user-defined non-contiguous (arbitrary) distribution.
 
static Teuchos::RCP< Map< int, long long, EpetraNode > > Build (const Teuchos::RCP< const Xpetra::Map< int, long long, EpetraNode > > &nodeMap, const int numDofPerNode, const long long gidOffset=Teuchos::ScalarTraits< long long >::zero())
 Map constructor generating degrees of freedom with numDofPerNode for given nodeMap.
 
static Teuchos::RCP< Map< int, long long, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, const Kokkos::View< const long long *, typename EpetraNode::device_type > &indexList, long long indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createLocalMap (UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a locally replicated Map with the default node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createLocalMapWithNode (UnderlyingLib lib, size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a locally replicated Map with a specified node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createUniformContigMapWithNode (UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a uniform, contiguous Map with a user-specified node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createUniformContigMap (UnderlyingLib lib, global_size_t numElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a uniform, contiguous Map with the default node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createContigMap (UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a (potentially) non-uniform, contiguous Map with the default node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > createContigMapWithNode (UnderlyingLib lib, global_size_t numElements, size_t localNumElements, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Create a (potentially) non-uniform, contiguous Map with a user-specified node.
 
static Teuchos::RCP< const Map< int, long long, EpetraNode > > copyMapWithNewComm (const Teuchos::RCP< const Map< int, long long, EpetraNode > > &oldmap, const Teuchos::RCP< const Teuchos::Comm< int > > &newComm)
 Create a copy of the map, only using the new Comm object if the Comm would be valid.
 

Private Types

typedef int LocalOrdinal
 
typedef long long GlobalOrdinal
 
typedef EpetraNode Node
 

Private Member Functions

 MapFactory ()
 Private constructor. This is a static class.
 
 MapFactory ()
 Private constructor. This is a static class.
 

Detailed Description

Definition at line 333 of file Xpetra_MapFactory_decl.hpp.

Member Typedef Documentation

◆ LocalOrdinal

typedef int Xpetra::MapFactory< int, long long, EpetraNode >::LocalOrdinal
private

Definition at line 336 of file Xpetra_MapFactory_decl.hpp.

◆ GlobalOrdinal

typedef long long Xpetra::MapFactory< int, long long, EpetraNode >::GlobalOrdinal
private

Definition at line 337 of file Xpetra_MapFactory_decl.hpp.

◆ Node

typedef EpetraNode Xpetra::MapFactory< int, long long, EpetraNode >::Node
private

Definition at line 338 of file Xpetra_MapFactory_decl.hpp.

Constructor & Destructor Documentation

◆ MapFactory() [1/2]

Xpetra::MapFactory< int, long long, EpetraNode >::MapFactory ( )
private

Private constructor. This is a static class.

◆ MapFactory() [2/2]

Xpetra::MapFactory< int, long long, EpetraNode >::MapFactory ( )
inlineprivate

Private constructor. This is a static class.

Definition at line 72 of file Xpetra_MapFactory_decl.hpp.

Member Function Documentation

◆ Build() [1/9]

static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
int indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm,
LocalGlobal lg = GloballyDistributed )
static

◆ Build() [2/9]

static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
size_t numLocalElements,
int indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ Build() [3/9]

static RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
const Teuchos::ArrayView< const GlobalOrdinal > & elementList,
int indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ Build() [4/9]

static Teuchos::RCP< Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & map,
LocalOrdinal numDofPerNode )
static

Map constructor transforming degrees of freedom for numDofPerNode this acts like a deep copy

◆ createLocalMap() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createLocalMap ( UnderlyingLib lib,
size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ createLocalMapWithNode() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createLocalMapWithNode ( UnderlyingLib lib,
size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ createUniformContigMapWithNode() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createUniformContigMapWithNode ( UnderlyingLib lib,
global_size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ createUniformContigMap() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createUniformContigMap ( UnderlyingLib lib,
global_size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ createContigMap() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createContigMap ( UnderlyingLib lib,
global_size_t numElements,
size_t localNumElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ createContigMapWithNode() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::createContigMapWithNode ( UnderlyingLib lib,
global_size_t numElements,
size_t localNumElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

◆ copyMapWithNewComm() [1/2]

static Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > Xpetra::MapFactory< int, long long, EpetraNode >::copyMapWithNewComm ( const Teuchos::RCP< const Map< LocalOrdinal, GlobalOrdinal, Node > > & oldmap,
const Teuchos::RCP< const Teuchos::Comm< int > > & newComm )
static

◆ Build() [5/9]

Teuchos::RCP< Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
long long indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm,
LocalGlobal lg = Xpetra::GloballyDistributed )
static

Map constructor with Xpetra-defined contiguous uniform distribution.

Definition at line 82 of file Xpetra_MapFactory_def.hpp.

◆ Build() [6/9]

Teuchos::RCP< Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
size_t numLocalElements,
long long indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Map constructor with a user-defined contiguous distribution.

Definition at line 93 of file Xpetra_MapFactory_def.hpp.

◆ Build() [7/9]

Teuchos::RCP< Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
const Teuchos::ArrayView< const long long > & elementList,
long long indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Map constructor with user-defined non-contiguous (arbitrary) distribution.

Definition at line 104 of file Xpetra_MapFactory_def.hpp.

◆ Build() [8/9]

Teuchos::RCP< Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( const Teuchos::RCP< const Xpetra::Map< int, long long, EpetraNode > > & nodeMap,
const int numDofPerNode,
const long long gidOffset = Teuchos::ScalarTraits<GlobalOrdinal>::zero() )
static

Map constructor generating degrees of freedom with numDofPerNode for given nodeMap.

Parameters
[in]nodeMapExisting (node) map
[in]numDofPerNodeNumber of DOFs per node for output map
[in]gidOffsetGID offset for output map
Returns
Map
Note
This acts like a deep copy.

Definition at line 122 of file Xpetra_MapFactory_def.hpp.

◆ Build() [9/9]

Teuchos::RCP< Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
const Kokkos::View< const long long *, typename EpetraNode::device_type > & indexList,
long long indexBase,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Definition at line 129 of file Xpetra_MapFactory_def.hpp.

◆ createLocalMap() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createLocalMap ( UnderlyingLib lib,
size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a locally replicated Map with the default node.

Definition at line 139 of file Xpetra_EpetraMapFactory.cpp.

◆ createLocalMapWithNode() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createLocalMapWithNode ( UnderlyingLib lib,
size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a locally replicated Map with a specified node.

Definition at line 148 of file Xpetra_EpetraMapFactory.cpp.

◆ createUniformContigMapWithNode() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createUniformContigMapWithNode ( UnderlyingLib lib,
global_size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a uniform, contiguous Map with a user-specified node.

Definition at line 157 of file Xpetra_EpetraMapFactory.cpp.

◆ createUniformContigMap() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createUniformContigMap ( UnderlyingLib lib,
global_size_t numElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a uniform, contiguous Map with the default node.

Definition at line 164 of file Xpetra_EpetraMapFactory.cpp.

◆ createContigMap() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createContigMap ( UnderlyingLib lib,
global_size_t numElements,
size_t localNumElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a (potentially) non-uniform, contiguous Map with the default node.

Definition at line 171 of file Xpetra_EpetraMapFactory.cpp.

◆ createContigMapWithNode() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::createContigMapWithNode ( UnderlyingLib lib,
global_size_t numElements,
size_t localNumElements,
const Teuchos::RCP< const Teuchos::Comm< int > > & comm )
static

Create a (potentially) non-uniform, contiguous Map with a user-specified node.

Definition at line 181 of file Xpetra_EpetraMapFactory.cpp.

◆ copyMapWithNewComm() [2/2]

Teuchos::RCP< const Map< int, long long, EpetraNode > > Xpetra::MapFactory< int, long long, EpetraNode >::copyMapWithNewComm ( const Teuchos::RCP< const Map< int, long long, EpetraNode > > & oldmap,
const Teuchos::RCP< const Teuchos::Comm< int > > & newComm )
static

Create a copy of the map, only using the new Comm object if the Comm would be valid.

Definition at line 189 of file Xpetra_EpetraMapFactory.cpp.


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