37 #ifndef OPM_GRIDPARTITIONING_HEADER 38 #define OPM_GRIDPARTITIONING_HEADER 51 bool operator()(
const std::pair<int,int>& o,
const std::pair<int,int>& v)
53 return o.first < v.first;
66 const std::array<int, 3>& initial_split,
68 std::vector<int>& cell_part,
69 bool recursive =
false,
70 bool ensureConnectivity =
true);
80 void addOverlapLayer(
const CpGrid& grid,
81 const std::vector<int>& cell_part,
82 std::vector<std::set<int> >& cell_overlap,
83 int mypart,
int overlapLayers,
bool all=
false);
88 #endif // OPM_GRIDPARTITIONING_HEADER Definition: GridPartitioning.hpp:49
Holds the implementation of the CpGrid as a pimple.
Definition: OpmParserIncludes.hpp:42
[ provides Dune::Grid ]
Definition: CpGrid.hpp:213
void partition(const CpGrid &grid, const coord_t &initial_split, int &num_part, std::vector< int > &cell_part, bool recursive, bool ensureConnectivity)
Partition a CpGrid based on (ijk) coordinates, with splitting to ensure that each partition is connec...
Definition: GridPartitioning.cpp:188