25 #include <queso/Map.h>
26 #include <queso/MpiComm.h>
41 "should not be called");
46 int numGlobalElements,
51 #ifdef QUESO_HAS_TRILINOS
52 m_epetraMap ( new Epetra_Map(numGlobalElements,0,comm.epetraMpiComm()) )
54 m_numGlobalElements(numGlobalElements),
55 m_indexBase (indexBase),
56 m_numMyElements (numGlobalElements)
64 m_MpiComm(src.m_MpiComm)
65 #ifdef QUESO_HAS_TRILINOS
76 #ifdef QUESO_HAS_TRILINOS
98 #ifdef QUESO_HAS_TRILINOS
99 return m_epetraMap->NumGlobalElements();
109 #ifdef QUESO_HAS_TRILINOS
110 return m_epetraMap->IndexBase();
120 #ifdef QUESO_HAS_TRILINOS
121 return m_epetraMap->NumMyElements();
131 #ifdef QUESO_HAS_TRILINOS
132 return m_epetraMap->MinMyGID();
147 #ifdef QUESO_HAS_TRILINOS
149 Map::epetraMap()
const
160 #ifdef QUESO_HAS_TRILINOS
162 m_epetraMap =
new Epetra_Map(*src.m_epetraMap);
int NumGlobalElements() const
Returns the total number of elements across all processors.
const int UQ_UNAVAILABLE_RANK
int NumMyElements() const
Returns the number of elements owned by the calling processor.
A class for partitioning vectors and matrices.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Map & operator=(const Map &rhs)
Assignment operator.
void copy(const Map &src)
Copies the map.
The QUESO MPI Communicator Class.
int m_numMyElements
Number of elements owned by the calling processor.
int m_indexBase
Base integer value for indexed array references.
Map()
Default constructor. Do not call this directly.
MpiComm m_MpiComm
This communicator can be queried for processor rank and size information.
const MpiComm & Comm() const
Access function for MpiComm communicator.
int m_numGlobalElements
Total number of elements across all processors.
int MinMyGID() const
The minimum global index value on the calling processor.