33 #ifndef __H__LIB_ALGEBRA__PARALLELIZATION__ALGEBRA_ID__
34 #define __H__LIB_ALGEBRA__PARALLELIZATION__ALGEBRA_ID__
51 second = _indexOnMaster;
78 hash.
reserve(algebraIDs.size());
81 for(
size_t i = 0; i < algebraIDs.size(); ++i)
82 hash.
insert(algebraIDs[i], i);
void insert(const key_t &key, const value_t &val)
Definition: hash_impl.hpp:199
void reserve(size_t size)
Reserves memory for key-value-pair storage.
Definition: hash_impl.hpp:113
void resize_hash(size_t size)
Definition: hash_impl.hpp:66
void clear()
Definition: hash_impl.hpp:129
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
int ProcRank()
returns the rank of the process
Definition: pcl_base.cpp:83
size_t hash_key< AlgebraID >(const AlgebraID &key)
Definition: parallelization_util.cpp:48
std::vector< AlgebraID > AlgebraIDVec
Definition: algebra_id.h:63
void GenerateAlgebraIDHashList(AlgebraIDHashList &hash, AlgebraIDVec &algebraIDs)
Creates a hash which allows a algebraID->localIndex mapping.
Definition: algebra_id.h:70
Hash< AlgebraID, size_t > AlgebraIDHashList
Definition: algebra_id.h:64
#define PROFILE_FUNC_GROUP(groups)
Definition: profiler.h:258
this type is used to identify distributed objects.
Definition: algebra_id.h:46
AlgebraID()
Definition: algebra_id.h:47
int master_proc() const
Definition: algebra_id.h:54
AlgebraID(int _masterProc, size_t _indexOnMaster)
Definition: algebra_id.h:48
size_t index_on_master() const
Definition: algebra_id.h:55
bool is_slave() const
Definition: algebra_id.h:56
bool is_master() const
Definition: algebra_id.h:57