version 3.8
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 >
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> >

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

◆ 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

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