3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Static Public Member Functions | List of all members
Dumux::ScotchPartitioner< IndexType > Class Template Reference

A reordering backend using the scotch library. More...

#include <dumux/parallel/scotchpartitioner.hh>

Description

template<class IndexType = int>
class Dumux::ScotchPartitioner< IndexType >

A reordering backend using the scotch library.

Note
You need to have PTSCOTCH installed to use this feature

Public Types

using Graph = std::vector< std::vector< IndexType > >
 the graph type More...
 

Static Public Member Functions

static std::vector< IndexType > partition (const Graph &graph, std::size_t numProcessors)
 Compute graph partition. More...
 
static void partition (const Graph &graph, std::size_t numProcessors, std::vector< IndexType > &targetProcessors)
 Compute graph partition. More...
 

Member Typedef Documentation

◆ Graph

template<class IndexType = int>
using Dumux::ScotchPartitioner< IndexType >::Graph = std::vector<std::vector<IndexType> >

the graph type

Member Function Documentation

◆ partition() [1/2]

template<class IndexType = int>
static std::vector< IndexType > Dumux::ScotchPartitioner< IndexType >::partition ( const Graph graph,
std::size_t  numProcessors 
)
inlinestatic

Compute graph partition.

◆ partition() [2/2]

template<class IndexType = int>
static void Dumux::ScotchPartitioner< IndexType >::partition ( const Graph graph,
std::size_t  numProcessors,
std::vector< IndexType > &  targetProcessors 
)
inlinestatic

Compute graph partition.


The documentation for this class was generated from the following file: