20 #ifndef OPM_ASPINPARTITION_HEADER_INCLUDED 21 #define OPM_ASPINPARTITION_HEADER_INCLUDED 40 template <
typename Element>
49 std::function<int(const Element&)>
index;
95 template <
class Gr
idView,
class Element>
96 std::pair<std::vector<int>,
int>
98 const int num_local_domains,
99 const GridView& grid_view,
100 const std::vector<Well>& wells,
101 const std::unordered_map<std::string, std::set<int>>& possibleFutureConnections,
103 const int num_neighbor_levels);
107 std::pair<std::vector<int>,
int>
partitionCellsFromFile(
const std::string& filename,
const int num_cells);
111 std::pair<std::vector<int>,
int>
partitionCellsSimple(
const int num_cells,
const int num_domains);
115 #endif // OPM_ASPINPARTITION_HEADER_INCLUDED std::function< int(int)> local_to_global
Compute a globally unique, across all MPI processes, ID for a local cell/element/entity.
Definition: partitionCells.hpp:58
double domain_imbalance
Partition imbalance, percentage units.
Definition: partitionCells.hpp:45
std::function< int(const Element &)> index
Compute a locally unique, for this MPI process, ID of a local cell/element/entity.
Definition: partitionCells.hpp:49
Control parameters for on-rank subdomain partitioning using Zoltan library.
Definition: partitionCells.hpp:41
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
std::pair< std::vector< int >, int > partitionCellsSimple(const int num_cells, const int num_domains)
Trivially simple partitioner assigning partitions en bloc, consecutively by cell index.
Definition: partitionCells.cpp:735
std::pair< std::vector< int >, int > partitionCellsFromFile(const std::string &filename, const int num_cells)
Read a partitioning from file, assumed to contain one number per cell, its partition number...
Definition: partitionCells.cpp:708
std::pair< std::vector< int >, int > partitionCells(const std::string &method, const int num_local_domains, const GridView &grid_view, const std::vector< Well > &wells, const std::unordered_map< std::string, std::set< int >> &possibleFutureConnections, const ZoltanPartitioningControl< Element > &zoltan_ctrl, const int num_neighbor_levels)
Partition rank's interior cells.