43 #ifndef _fei_Aztec_Map_hpp_
44 #define _fei_Aztec_Map_hpp_
60 namespace fei_trilinos {
65 Aztec_Map(
int globalSize,
int N_update,
const int* update,
int localOffset,
68 Aztec_Map(
const Aztec_Map& map);
69 virtual ~Aztec_Map(
void);
71 virtual const int& localSize()
const {
return(localSize_);}
72 virtual const int& globalSize()
const {
return(globalSize_);}
73 virtual const int& localOffset()
const {
return(localOffset_);}
77 return update.size()>0 ? &update[0] : NULL;
80 virtual MPI_Comm getCommunicator()
const {
return(comm_);}
82 virtual int* getProcConfig()
84 return proc_config.size()>0 ? &proc_config[0] : NULL;
87 std::vector<int> proc_config;
88 std::vector<int> update;
93 std::vector<int> orderingUpdate;
97 int getTransformedEqn(
int eqn)
const {
98 if (az_transformed ==
true) {
99 return eqn<N_update_ ? update[orderingUpdate[eqn]] : external[eqn-N_update_];
104 bool inUpdate(
int globalIndex,
int& localIndex)
const
106 localIndex = globalIndex - localOffset_;
107 if (localIndex<0 || localIndex>=localSize_) {
111 if (az_transformed ==
true) {
112 localIndex = update_index[localIndex];