GridPartitioning.hpp File Reference
#include <vector>
#include <array>
#include <set>
#include <tuple>
#include <dune/common/parallel/mpihelper.hh>
#include <opm/grid/utility/OpmWellType.hpp>
#include <opm/grid/common/WellConnections.hpp>
Include dependency graph for GridPartitioning.hpp:

Go to the source code of this file.

Classes

struct  Dune::OrderByFirst
 

Namespaces

namespace  Dune
 The namespace Dune is the main namespace for all Dune code.
 
namespace  Dune::cpgrid
 

Functions

void Dune::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 Dune::addOverlapLayer (const CpGrid &grid, const std::vector< int > &cell_part, std::vector< std::set< int > > &cell_overlap, int mypart, int overlapLayers, bool all=false)
 Adds a layer of overlap cells to a partitioning. More...
 
int Dune::addOverlapLayer (const CpGrid &grid, const std::vector< int > &cell_part, std::vector< std::tuple< int, int, char > > &exportList, std::vector< std::tuple< int, int, char, int > > &importList, const Communication< Dune::MPIHelper::MPICommunicator > &cc, bool addCornerCells, const double *trans, int layers=1)
 Adds a layer of overlap cells to a partitioning. More...
 
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 > Dune::cpgrid::createZoltanListsFromParts (const CpGrid &grid, const std::vector< cpgrid::OpmWellType > *wells, const double *transmissibilities, const std::vector< int > &parts, bool allowDistributedWells)
 Creates lists as Zoltan would return for vanilla / user specified partitioning. More...
 
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 > Dune::cpgrid::vanillaPartitionGridOnRoot (const CpGrid &grid, const std::vector< cpgrid::OpmWellType > *wells, const double *transmissibilities, bool allowDistributedWells)
 Creates a vanilla partitioning without a real loadbalancer. More...