GridPartitioning.hpp
Go to the documentation of this file.
A class calculating and representing all connections of wells. Definition: WellConnections.hpp:51 std::tuple< std::vector< int >, std::vector< std::pair< std::string, bool > >, std::vector< std::tuple< int, int, char > >, std::vector< std::tuple< int, int, char, int > >, WellConnections > createListsFromParts(const CpGrid &grid, const std::vector< cpgrid::OpmWellType > *wells, const std::unordered_map< std::string, std::set< int > > &possibleFutureConnections, const double *transmissibilities, const std::vector< int > &parts, bool allowDistributedWells, std::shared_ptr< cpgrid::CombinedGridWellGraph > gridAndWells=nullptr, int level=-1) Creates lists as Zoltan would return for vanilla / user specified partitioning. std::tuple< std::vector< int >, std::vector< std::pair< std::string, bool > >, std::vector< std::tuple< int, int, char > >, std::vector< std::tuple< int, int, char, int > >, WellConnections > vanillaPartitionGridOnRoot(const CpGrid &grid, const std::vector< cpgrid::OpmWellType > *wells, const std::unordered_map< std::string, std::set< int > > &possibleFutureConnections, const double *transmissibilities, bool allowDistributedWells) Creates a vanilla partitioning without a real loadbalancer. The namespace Dune is the main namespace for all Dune code. Definition: common/CartesianIndexMapper.hpp:10 void partition(const CpGrid &grid, const std::array< int, 3 > &initial_split, int &num_part, std::vector< int > &cell_part, bool recursive=false, bool ensureConnectivity=true) void addOverlapLayer(const CpGrid &grid, const std::vector< int > &cell_part, std::vector< std::set< int > > &cell_overlap, int mypart, int overlapLayers, bool all=false, int level=-1) Adds a layer of overlap cells to a partitioning. Definition: GridPartitioning.hpp:58 bool operator()(const std::pair< int, int > &o, const std::pair< int, int > &v) Definition: GridPartitioning.hpp:59 |