20#ifndef OPM_ASPINPARTITION_HEADER_INCLUDED
21#define OPM_ASPINPARTITION_HEADER_INCLUDED
40template <
typename Element>
49 std::function<int(
const Element&)>
index;
90template <
class Gr
idView,
class Element>
91std::pair<std::vector<int>,
int>
93 const int num_local_domains,
94 const GridView& grid_view,
95 const std::vector<Well>& wells,
96 const std::unordered_map<std::string, std::set<int>>& possibleFutureConnections,
105std::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 blackoilboundaryratevector.hh:37
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:641
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:668
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)
Partition rank's interior cells.
Definition partitionCells.cpp:598
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