25 #include <queso/Map.h>
26 #include <queso/MpiComm.h>
35 int numGlobalElements,
40 #ifdef QUESO_HAS_TRILINOS
41 m_epetraMap ( new Epetra_Map(numGlobalElements,0,comm.epetraMpiComm()) )
43 m_numGlobalElements(numGlobalElements),
44 m_indexBase (indexBase),
45 m_numMyElements (numGlobalElements)
53 m_MpiComm(src.m_MpiComm)
54 #ifdef QUESO_HAS_TRILINOS
65 #ifdef QUESO_HAS_TRILINOS
87 #ifdef QUESO_HAS_TRILINOS
88 return m_epetraMap->NumGlobalElements();
98 #ifdef QUESO_HAS_TRILINOS
99 return m_epetraMap->IndexBase();
109 #ifdef QUESO_HAS_TRILINOS
110 return m_epetraMap->NumMyElements();
120 #ifdef QUESO_HAS_TRILINOS
121 return m_epetraMap->MinMyGID();
136 #ifdef QUESO_HAS_TRILINOS
138 Map::epetraMap()
const
149 #ifdef QUESO_HAS_TRILINOS
151 m_epetraMap =
new Epetra_Map(*src.m_epetraMap);
const MpiComm & Comm() const
Access function for MpiComm communicator.
int m_numMyElements
Number of elements owned by the calling processor.
int NumMyElements() const
Returns the number of elements owned by the calling processor.
Map & operator=(const Map &rhs)
Assignment operator.
The QUESO MPI Communicator Class.
int m_numGlobalElements
Total number of elements across all processors.
MpiComm m_MpiComm
This communicator can be queried for processor rank and size information.
int m_indexBase
Base integer value for indexed array references.
int MinMyGID() const
The minimum global index value on the calling processor.
Map()
Default constructor. Do not call this directly.
A class for partitioning vectors and matrices.
void copy(const Map &src)
Copies the map.
int NumGlobalElements() const
Returns the total number of elements across all processors.