3 #ifndef DUNE_AMG_GRAPHCREATOR_HH
4 #define DUNE_AMG_GRAPHCREATOR_HH
18 template<
class M,
class PI>
21 typedef typename M::matrix_type
Matrix;
32 typedef std::tuple<MatrixGraph*,PropertiesGraph*,SubGraph*>
GraphTuple;
34 template<
class OF,
class T>
36 PI& pinfo,
const OF& of)
39 typedef typename PI::ParallelIndexSet ParallelIndexSet;
40 typedef typename ParallelIndexSet::const_iterator IndexIterator;
41 IndexIterator iend = pinfo.indexSet().end();
43 for(IndexIterator index = pinfo.indexSet().begin(); index != iend; ++index)
44 excluded[index->local()] = of.contains(index->local().attribute());
53 delete std::get<2>(graphs);
54 delete std::get<1>(graphs);
61 typedef typename M::matrix_type
Matrix;
71 typedef std::tuple<MatrixGraph*,PropertiesGraph*>
GraphTuple;
73 template<
class OF,
class T>
75 [[maybe_unused]] T& excluded,
86 delete std::get<1>(graphs);
Implementation of the BCRSMatrix class.
Define general, extensible interface for operators. The available implementation wraps a matrix.
Provides classes for initializing the link attributes of a matrix graph.
Provides classes for building the matrix graph.
Definition: allocator.hh:9
Class representing the properties of an ede in the matrix graph.
Definition: dependency.hh:37
Class representing a node in the matrix graph.
Definition: dependency.hh:124
The (undirected) graph of a matrix.
Definition: graph.hh:49
A subgraph of a graph.
Definition: graph.hh:441
EdgeIndexMap getEdgeIndexMap()
Get an edge index map for the graph.
An index map for mapping the edges to indices.
Definition: graph.hh:468
Attaches properties to the edges and vertices of a graph.
Definition: graph.hh:976
Definition: graphcreator.hh:20
Dune::Amg::SubGraph< MatrixGraph, std::vector< bool > > SubGraph
Definition: graphcreator.hh:24
Dune::Amg::PropertiesGraph< SubGraph, VertexProperties, EdgeProperties, IdentityMap, typename SubGraph::EdgeIndexMap > PropertiesGraph
Definition: graphcreator.hh:30
M::matrix_type Matrix
Definition: graphcreator.hh:21
static GraphTuple create(const M &matrix, T &excluded, PI &pinfo, const OF &of)
Definition: graphcreator.hh:35
static void free(GraphTuple &graphs)
Definition: graphcreator.hh:51
Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
Definition: graphcreator.hh:22
std::tuple< MatrixGraph *, PropertiesGraph *, SubGraph * > GraphTuple
Definition: graphcreator.hh:32
Dune::Amg::MatrixGraph< const Matrix > MatrixGraph
Definition: graphcreator.hh:63
M::matrix_type Matrix
Definition: graphcreator.hh:61
Dune::Amg::PropertiesGraph< MatrixGraph, VertexProperties, EdgeProperties, IdentityMap, IdentityMap > PropertiesGraph
Definition: graphcreator.hh:69
std::tuple< MatrixGraph *, PropertiesGraph * > GraphTuple
Definition: graphcreator.hh:71
static GraphTuple create([[maybe_unused]] const M &matrix, [[maybe_unused]] T &excluded, [[maybe_unused]] const SequentialInformation &pinfo, const OF &)
Definition: graphcreator.hh:74
static void free(GraphTuple &graphs)
Definition: graphcreator.hh:84