| Line | |
|---|
| 1 | /**
|
|---|
| 2 | * @file global_grid_partitioning.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Thu May 19 14:02:46 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Class to store global grid partitioning.
|
|---|
| 7 | *
|
|---|
| 8 | */
|
|---|
| 9 |
|
|---|
| 10 | #ifndef GLOBAL_GRID_PARTITIONING_HPP_
|
|---|
| 11 | #define GLOBAL_GRID_PARTITIONING_HPP_
|
|---|
| 12 |
|
|---|
| 13 | #include <map>
|
|---|
| 14 |
|
|---|
| 15 | #include "base/index.hpp"
|
|---|
| 16 |
|
|---|
| 17 | namespace VMG
|
|---|
| 18 | {
|
|---|
| 19 |
|
|---|
| 20 | class GlobalGridPartitioning
|
|---|
| 21 | {
|
|---|
| 22 | public:
|
|---|
| 23 | GlobalGridPartitioning(Index pos, Index procs, Index size, int points_min);
|
|---|
| 24 |
|
|---|
| 25 | const Index& Pos() const {return pos;}
|
|---|
| 26 | const Index& Procs() const {return procs;}
|
|---|
| 27 | const Index& Size() const {return size;}
|
|---|
| 28 | const int& PointsMin() const {return points_min;}
|
|---|
| 29 |
|
|---|
| 30 | const Index& GlobalBegin(const Index& pos) const;
|
|---|
| 31 | const Index& GlobalEnd(const Index& pos) const;
|
|---|
| 32 |
|
|---|
| 33 | private:
|
|---|
| 34 | std::map<Index, Index> begin, end;
|
|---|
| 35 | Index pos, procs, size;
|
|---|
| 36 | int points_min;
|
|---|
| 37 |
|
|---|
| 38 | };
|
|---|
| 39 |
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | #endif /* GLOBAL_GRID_PARTITIONING_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.