20 #ifndef DUNE_CPGRID_ZOLTANPARTITION_HEADER
21 #define DUNE_CPGRID_ZOLTANPARTITION_HEADER
23 #include <unordered_set>
25 #include <opm/grid/CpGrid.hpp>
26 #include <opm/grid/common/ZoltanGraphFunctions.hpp>
61 std::tuple<std::vector<int>, std::vector<std::pair<std::string,bool>>,
62 std::vector<std::tuple<int,int,char> >,
63 std::vector<std::tuple<int,int,char,int> > >
65 const Dune::CollectiveCommunication<MPI_Comm>& cc,
66 const std::vector<Dune::cpgrid::OpmWellType> * wells,
71 const Id* exportLocalGids,
72 const Id* exportGlobalGids,
73 const int* exportToPart,
74 const Id* importGlobalGids,
75 bool allowDistributedWells =
false);
78 std::tuple<int, std::vector<Id> >
79 scatterExportInformation(
int numExport,
const Id* exportGlobalGids,
80 const int* exportToPart,
int root,
81 const Dune::CollectiveCommunication<MPI_Comm>& cc);
85 #if defined(HAVE_ZOLTAN) && defined(HAVE_MPI)
117 std::tuple<std::vector<int>,std::vector<std::pair<std::string,bool>>,
118 std::vector<std::tuple<int,int,char> >,
119 std::vector<std::tuple<int,int,char,int> > >
120 zoltanGraphPartitionGridOnRoot(
const CpGrid& grid,
121 const std::vector<OpmWellType> * wells,
122 const double* transmissibilities,
123 const CollectiveCommunication<MPI_Comm>& cc,
125 const double zoltanImbalanceTol,
126 bool allowDistributedWells);
156 std::tuple<std::vector<int>, std::vector<std::pair<std::string,bool>>,
157 std::vector<std::tuple<int,int,char> >,
158 std::vector<std::tuple<int,int,char,int> > >
159 zoltanSerialGraphPartitionGridOnRoot(
const CpGrid& grid,
160 const std::vector<OpmWellType> * wells,
161 const double* transmissibilities,
162 const CollectiveCommunication<MPI_Comm>& cc,
164 const double zoltanImbalanceTol,
165 bool allowDistributedWells);
[ provides Dune::Grid ]
Definition: CpGrid.hpp:207
A graph repesenting a grid together with the well completions.
Definition: ZoltanGraphFunctions.hpp:131
Copyright 2019 Equinor AS.
Definition: CartesianIndexMapper.hpp:10
EdgeWeightMethod
enum for choosing Methods for weighting graph-edges correspoding to cell interfaces in Zoltan's graph...
Definition: GridEnums.hpp:34