19 #ifndef DUNE_CPGRID_METISPARTITION_HEADER 20 #define DUNE_CPGRID_METISPARTITION_HEADER 22 #include <opm/grid/CpGrid.hpp> 23 #include <opm/grid/common/ZoltanGraphFunctions.hpp> 24 #include <opm/grid/common/WellConnections.hpp> 25 #include <opm/grid/common/ZoltanPartition.hpp> 26 #include <opm/grid/common/GridPartitioning.hpp> 30 #if IS_SCOTCH_METIS_HEADER 35 #ifndef SCOTCH_METIS_VERSION 36 #define SCOTCH_METIS_VERSION 5 40 #if defined(HAVE_METIS) && HAVE_MPI 44 #endif // defined(HAVE_METIS) && HAVE_MPI 46 #if defined(HAVE_METIS) && HAVE_MPI 52 #include <unordered_map> 59 #if defined(REALTYPEWIDTH) 60 using real_t = ::real_t;
62 using real_t = double;
65 #if defined(IDXTYPEWIDTH) 66 using idx_t = ::idx_t;
67 #elif IS_SCOTCH_METIS_HEADER 68 using idx_t = SCOTCH_Num;
73 #if IS_SCOTCH_METIS_HEADER 109 std::tuple<std::vector<int>,
110 std::vector<std::pair<std::string, bool>>,
111 std::vector<std::tuple<int, int, char>>,
112 std::vector<std::tuple<int, int, char, int>>,
114 metisSerialGraphPartitionGridOnRoot(
const CpGrid& grid,
115 const std::vector<OpmWellType> * wells,
116 const std::unordered_map<std::string, std::set<int>>& possibleFutureConnections,
117 const double* transmissibilities,
118 const Communication<MPI_Comm>& cc,
122 bool allowDistributedWells,
123 const std::map<std::string,std::string>& params);
128 #endif // defined(HAVE_METIS) && HAVE_MPI 129 #endif // header guard The namespace Dune is the main namespace for all Dune code.
Definition: CartesianIndexMapper.hpp:9
EdgeWeightMethod
enum for choosing Methods for weighting graph-edges correspoding to cell interfaces in Zoltan's or Me...
Definition: GridEnums.hpp:34