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

X P E T R A E P E T R A S P E C I A L I Z A T I O N. More...

#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 Xpetra::Map< LocalOrdinal, GlobalOrdinal, Node > > &map, const LocalOrdinal numDofPerNode, const GlobalOrdinal gidOffset=Teuchos::ScalarTraits< GlobalOrdinal >::zero())
 Map constructor transforming degrees of freedom for 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, int, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, int 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, int, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, size_t numLocalElements, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Map constructor with a user-defined contiguous distribution.
 
static Teuchos::RCP< Map< int, int, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, const Teuchos::ArrayView< const int > &elementList, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 Map constructor with user-defined non-contiguous (arbitrary) distribution.
 
static Teuchos::RCP< Map< int, int, EpetraNode > > Build (const Teuchos::RCP< const Xpetra::Map< int, int, EpetraNode > > &nodeMap, const int numDofPerNode, const int gidOffset=Teuchos::ScalarTraits< int >::zero())
 Map constructor generating degrees of freedom with numDofPerNode for given nodeMap.
 
static Teuchos::RCP< Map< int, int, EpetraNode > > Build (UnderlyingLib lib, global_size_t numGlobalElements, const Kokkos::View< const int *, typename EpetraNode::device_type > &indexList, int indexBase, const Teuchos::RCP< const Teuchos::Comm< int > > &comm)
 
static Teuchos::RCP< const Map< int, int, 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, int, 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, int, 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, int, 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, int, 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, int, 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, int, EpetraNode > > copyMapWithNewComm (const Teuchos::RCP< const Map< int, int, 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 int 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

X P E T R A E P E T R A S P E C I A L I Z A T I O N.

Definition at line 208 of file Xpetra_MapFactory_decl.hpp.

Member Typedef Documentation

◆ LocalOrdinal

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

Definition at line 211 of file Xpetra_MapFactory_decl.hpp.

◆ GlobalOrdinal

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

Definition at line 212 of file Xpetra_MapFactory_decl.hpp.

◆ Node

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

Definition at line 213 of file Xpetra_MapFactory_decl.hpp.

Constructor & Destructor Documentation

◆ MapFactory() [1/2]

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

Private constructor. This is a static class.

Definition at line 62 of file Xpetra_EpetraMapFactory.cpp.

◆ MapFactory() [2/2]

Xpetra::MapFactory< int, int, 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]

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

Definition at line 71 of file Xpetra_EpetraMapFactory.cpp.

◆ Build() [2/9]

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

Definition at line 95 of file Xpetra_EpetraMapFactory.cpp.

◆ Build() [3/9]

RCP< Map< int, int, EpetraNode > > Xpetra::MapFactory< int, int, 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

Definition at line 119 of file Xpetra_EpetraMapFactory.cpp.

◆ Build() [4/9]

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

Map constructor transforming degrees of freedom for numDofPerNode.

Parameters
[in]mapExisting (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.

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

Definition at line 143 of file Xpetra_EpetraMapFactory.cpp.

◆ createLocalMap() [1/2]

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

Definition at line 185 of file Xpetra_EpetraMapFactory.cpp.

◆ createLocalMapWithNode() [1/2]

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

Definition at line 221 of file Xpetra_EpetraMapFactory.cpp.

◆ createUniformContigMapWithNode() [1/2]

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

Definition at line 257 of file Xpetra_EpetraMapFactory.cpp.

◆ createUniformContigMap() [1/2]

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

Definition at line 288 of file Xpetra_EpetraMapFactory.cpp.

◆ createContigMap() [1/2]

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

Definition at line 319 of file Xpetra_EpetraMapFactory.cpp.

◆ createContigMapWithNode() [1/2]

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

Definition at line 350 of file Xpetra_EpetraMapFactory.cpp.

◆ copyMapWithNewComm() [1/2]

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

Definition at line 382 of file Xpetra_EpetraMapFactory.cpp.

◆ Build() [5/9]

Teuchos::RCP< Map< int, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
int 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, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
size_t numLocalElements,
int 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, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
const Teuchos::ArrayView< const int > & elementList,
int 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, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::Build ( const Teuchos::RCP< const Xpetra::Map< int, int, EpetraNode > > & nodeMap,
const int numDofPerNode,
const int 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, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::Build ( UnderlyingLib lib,
global_size_t numGlobalElements,
const Kokkos::View< const int *, typename EpetraNode::device_type > & indexList,
int 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, 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, int, EpetraNode > > Xpetra::MapFactory< int, int, EpetraNode >::copyMapWithNewComm ( const Teuchos::RCP< const Map< int, int, 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: