20#ifndef OPM_ASPINPARTITION_HEADER_INCLUDED
21#define OPM_ASPINPARTITION_HEADER_INCLUDED
40template <
typename Element>
49 std::function<int(
const Element&)>
index;
95template <
class Gr
idView,
class Element>
96std::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);
111std::pair<std::vector<int>,
int>
partitionCellsSimple(
const int num_cells,
const int num_domains);
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
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.
Definition partitionCells.cpp:664
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 > partitionCellsSimple(const int num_cells, const int num_domains)
Trivially simple partitioner assigning partitions en bloc, consecutively by cell index.
Definition partitionCells.cpp:735
Control parameters for on-rank subdomain partitioning using Zoltan library.
Definition partitionCells.hpp:42
double domain_imbalance
Partition imbalance, percentage units.
Definition partitionCells.hpp:45
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
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