source: src/grid/global_grid_partitioning.hpp@ 759a6a

Last change on this file since 759a6a was dfed1c, checked in by Julian Iseringhausen <isering@…>, 14 years ago

Major vmg update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1136 5161e1c8-67bf-11de-9fd5-51895aff932f

  • Property mode set to 100644
File size: 882 bytes
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
17namespace VMG
18{
19
20class GlobalGridPartitioning
21{
22public:
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
33private:
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.