20#ifndef OPM_ASPINPARTITION_HEADER_INCLUDED
21#define OPM_ASPINPARTITION_HEADER_INCLUDED
39template <
typename Element>
48 std::function<int(
const Element&)>
index;
89template <
class Gr
idView,
class Element>
90std::pair<std::vector<int>,
int>
92 const int num_local_domains,
93 const GridView& grid_view,
94 const std::vector<Well>& wells,
103std::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 BlackoilPhases.hpp:27
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:616
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:643
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 ZoltanPartitioningControl< Element > &zoltan_ctrl)
Partition rank's interior cells.
Definition partitionCells.cpp:574
Control parameters for on-rank subdomain partitioning using Zoltan library.
Definition partitionCells.hpp:41
double domain_imbalance
Partition imbalance, percentage units.
Definition partitionCells.hpp:44
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:57
std::function< int(const Element &)> index
Compute a locally unique, for this MPI process, ID of a local cell/element/entity.
Definition partitionCells.hpp:48