KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::MultiGridSolver_Detail Namespace Reference

Classes

class  MultiLevelStack
class  ParentalNodes
 Finds the parent nodes and their interpolation weight for each node in the grid. usage eg.: ParentalNodes<Grid> parentalNodes( gridManager.grid() );. More...

Typedefs

template<class Scalar, int n, class Allocator>
using BlockVector = Dune::BlockVector<Dune::FieldVector<Scalar,n>,Allocator>

Functions

template<class Scalar, int n, bool resetSolution = false>
void axpy (Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const &P, Dune::BlockVector< Dune::FieldVector< Scalar, n > > const &x, Dune::BlockVector< Dune::FieldVector< Scalar, n > > &y, Scalar alpha=1.0)
 Compute \( y = \alpha Px+y \). If resetSolution=true computes \( y = \alpha Px \).
template<class Scalar, int n, bool resetSolution = false>
void atxpy (Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const &P, Dune::BlockVector< Dune::FieldVector< Scalar, n > > const &x, Dune::BlockVector< Dune::FieldVector< Scalar, n > > &y, Scalar alpha=1.0)
 Compute \( y = \alpha P^T x+y \). If resetSolution=true computes \( y = \alpha P^T x \).
template<class Scalar, int n>
void applyProlongation (Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const &P, Dune::BlockVector< Dune::FieldVector< Scalar, n > > const &x, Dune::BlockVector< Dune::FieldVector< Scalar, n > > &y)
template<class Scalar, int n>
void applyTransposedProlongation (Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const &P, Dune::BlockVector< Dune::FieldVector< Scalar, n > > const &x, Dune::BlockVector< Dune::FieldVector< Scalar, n > > &y)
template<class Grid, class Scalar = double>
std::vector< Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > > computeProlongations (const Grid &grd)
 Compute prolongation matrices between consecutive grid levels.

Typedef Documentation

◆ BlockVector

template<class Scalar, int n, class Allocator>
using Kaskade::MultiGridSolver_Detail::BlockVector = Dune::BlockVector<Dune::FieldVector<Scalar,n>,Allocator>

Definition at line 42 of file multiGridSolver.hh.

Function Documentation

◆ applyProlongation()

template<class Scalar, int n>
void Kaskade::MultiGridSolver_Detail::applyProlongation ( Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const & P,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > const & x,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > & y )

Definition at line 83 of file multiGridSolver.hh.

◆ applyTransposedProlongation()

template<class Scalar, int n>
void Kaskade::MultiGridSolver_Detail::applyTransposedProlongation ( Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const & P,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > const & x,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > & y )

Definition at line 91 of file multiGridSolver.hh.

◆ atxpy()

template<class Scalar, int n, bool resetSolution = false>
void Kaskade::MultiGridSolver_Detail::atxpy ( Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const & P,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > const & x,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > & y,
Scalar alpha = 1.0 )

Compute \( y = \alpha P^T x+y \). If resetSolution=true computes \( y = \alpha P^T x \).

Definition at line 65 of file multiGridSolver.hh.

Referenced by applyTransposedProlongation().

◆ axpy()

template<class Scalar, int n, bool resetSolution = false>
void Kaskade::MultiGridSolver_Detail::axpy ( Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > const & P,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > const & x,
Dune::BlockVector< Dune::FieldVector< Scalar, n > > & y,
Scalar alpha = 1.0 )

Compute \( y = \alpha Px+y \). If resetSolution=true computes \( y = \alpha Px \).

Definition at line 46 of file multiGridSolver.hh.

Referenced by applyProlongation().

◆ computeProlongations()

template<class Grid, class Scalar = double>
std::vector< Dune::BCRSMatrix< Dune::FieldMatrix< Scalar, 1, 1 > > > Kaskade::MultiGridSolver_Detail::computeProlongations ( const Grid & grd)

Compute prolongation matrices between consecutive grid levels.

Definition at line 240 of file multiGridSolver.hh.

Referenced by Kaskade::MultiGridSolver_Detail::MultiLevelStack< Grid, Scalar, nComponents, Matrix >::MultiLevelStack().