3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Classes | Public Member Functions | List of all members
Dumux::EntityExchanger< GridView, AmgTraits > Class Template Reference

Helper class for adding up matrix entries on border. More...

#include <dumux/linear/amgparallelhelpers.hh>

Description

template<class GridView, class AmgTraits>
class Dumux::EntityExchanger< GridView, AmgTraits >

Helper class for adding up matrix entries on border.

Template Parameters
GridViewThe grid view to work on
AmgTraitstraits class

Classes

struct  MatEntry
 Local matrix blocks associated with the global id set. More...
 
class  MatEntryExchange
 A DataHandle class to exchange matrix entries. More...
 
class  MatPatternExchange
 A DataHandle class to exchange matrix sparsity patterns. More...
 

Public Member Functions

 EntityExchanger (const GridView &gridView, const DofMapper &mapper)
 Constructor. Sets up the local to global relations. More...
 
void getExtendedMatrix (Matrix &A, const ParallelISTLHelper< GridView, AmgTraits > &helper)
 communicates values for the sparsity pattern of the new matrix. More...
 
void sumEntries (Matrix &A)
 Sums up the entries corresponding to border vertices. More...
 
void getExtendedMatrix (Matrix &A) const
 Extends the sparsity pattern of the discretization matrix for AMG. More...
 

Constructor & Destructor Documentation

◆ EntityExchanger()

template<class GridView , class AmgTraits >
Dumux::EntityExchanger< GridView, AmgTraits >::EntityExchanger ( const GridView &  gridView,
const DofMapper &  mapper 
)
inline

Constructor. Sets up the local to global relations.

Parameters
[in]gridViewThe gridView on which we are operating
[in]mapperThe local dof mapper

Member Function Documentation

◆ getExtendedMatrix() [1/2]

template<class GridView , class AmgTraits >
void Dumux::EntityExchanger< GridView, AmgTraits >::getExtendedMatrix ( Matrix &  A) const

Extends the sparsity pattern of the discretization matrix for AMG.

Parameters
AA reference to the matrix to change.

◆ getExtendedMatrix() [2/2]

template<class GridView , class AmgTraits >
void Dumux::EntityExchanger< GridView, AmgTraits >::getExtendedMatrix ( Matrix &  A,
const ParallelISTLHelper< GridView, AmgTraits > &  helper 
)
inline

communicates values for the sparsity pattern of the new matrix.

Parameters
AMatrix to operate on.
helperParallelelISTLHelper.

◆ sumEntries()

template<class GridView , class AmgTraits >
void Dumux::EntityExchanger< GridView, AmgTraits >::sumEntries ( Matrix &  A)
inline

Sums up the entries corresponding to border vertices.

Parameters
AMatrix to operate on.

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