38 #ifndef OPM_GRIDPARTITIONING_HEADER
39 #define OPM_GRIDPARTITIONING_HEADER
46 #include <dune/common/parallel/mpihelper.hh>
48 #include <opm/grid/utility/OpmParserIncludes.hpp>
56 bool operator()(
const std::pair<int,int>& o,
const std::pair<int,int>& v)
58 return o.first < v.first;
71 const std::array<int, 3>& initial_split,
73 std::vector<int>& cell_part,
74 bool recursive =
false,
75 bool ensureConnectivity =
true);
85 void addOverlapLayer(
const CpGrid& grid,
86 const std::vector<int>& cell_part,
87 std::vector<std::set<int> >& cell_overlap,
88 int mypart,
int overlapLayers,
bool all=
false);
102 int addOverlapLayer(
const CpGrid& grid,
const std::vector<int>& cell_part,
103 std::vector<std::tuple<int,int,char>>& exportList,
104 std::vector<std::tuple<int,int,char,int>>& importList,
105 const CollectiveCommunication<Dune::MPIHelper::MPICommunicator>& cc,
106 bool addCornerCells,
const double* trans,
int layers = 1);
127 std::tuple<std::vector<int>, std::vector<std::pair<std::string,bool>>,
128 std::vector<std::tuple<int,int,char> >,
129 std::vector<std::tuple<int,int,char,int> > >
130 createZoltanListsFromParts(
const CpGrid& grid,
const std::vector<cpgrid::OpmWellType> * wells,
131 const double* transmissibilities,
const std::vector<int>& parts,
132 bool allowDistributedWells);
149 std::tuple<std::vector<int>, std::vector<std::pair<std::string,bool>>,
150 std::vector<std::tuple<int,int,char> >,
151 std::vector<std::tuple<int,int,char,int> > >
152 vanillaPartitionGridOnRoot(
const CpGrid& grid,
153 const std::vector<cpgrid::OpmWellType> * wells,
154 const double* transmissibilities,
155 bool allowDistributedWells);
[ provides Dune::Grid ]
Definition: CpGrid.hpp:207
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10
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:195
Definition: GridPartitioning.hpp:55