Skip to content
Snippets Groups Projects
Commit 3a879371 authored by Markus Blatt's avatar Markus Blatt
Browse files

Added some more typedef for documentation.

[[Imported from SVN: r468]]
parent a2209988
Branches
Tags
No related merge requests found
......@@ -49,6 +49,8 @@ namespace Dune {
typedef Y range_type;
//! \brief The field type of the range
typedef typename X::field_type field_type;
//! \brief The type of the communication object
typedef C communication_type;
enum {
//! \brief The solver category.
......@@ -62,7 +64,7 @@ namespace Dune {
* @param com The communication object for syncing overlap and copy
* data points. (E.~g. OwnerOverlapCommunication )
*/
OverlappingSchwarzOperator (const M& A, const C& com)
OverlappingSchwarzOperator (const matrix_type& A, const communication_type& com)
: _A_(A), communication(com)
{}
......@@ -84,14 +86,14 @@ namespace Dune {
}
//! get matrix via *
virtual const M& getmat () const
virtual const matrix_type& getmat () const
{
return _A_;
}
private:
const M& _A_;
const C& communication;
const matrix_type& _A_;
const communication_type& communication;
};
......@@ -109,6 +111,8 @@ namespace Dune {
typedef X domain_type;
//! \brief The type of the range
typedef typename X::field_type field_type;
//! \brief The type of the communication object
typedef C communication_type;
//! define the category
enum {category=SolverCategory::overlapping};
......@@ -117,7 +121,7 @@ namespace Dune {
* \param com The communication object for syncing overlap and copy
* data points. (E.~g. OwnerOverlapCommunication )
*/
OverlappingSchwarzScalarProduct (const C& com)
OverlappingSchwarzScalarProduct (const communication_type& com)
: communication(com)
{}
......@@ -141,7 +145,7 @@ namespace Dune {
}
private:
const C& communication;
const communication_type& communication;
};
......@@ -159,6 +163,8 @@ namespace Dune {
typedef Y range_type;
//! \brief The field type of the preconditioner.
typedef typename X::field_type field_type;
//! \briefe The type of the communication object.
typedef C communication_type;
// define the category
enum {
......@@ -175,7 +181,7 @@ namespace Dune {
\param com The communication object for syncing overlap and copy
* data points. (E.~g. OwnerOverlapCommunication )
*/
ParSSOR (const M& A, int n, field_type w, const C& c)
ParSSOR (const matrix_type& A, int n, field_type w, const communication_type& c)
: _A_(A), _n(n), _w(w), communication(c)
{ }
......@@ -212,13 +218,13 @@ namespace Dune {
private:
//! \brief The matrix we operate on.
const M& _A_;
const matrix_type& _A_;
//! \brief The number of steps to do in apply
int _n;
//! \brief The relaxation factor to use
field_type _w;
//! \brief the communication object
const C& communication;
const communication_type& communication;
};
......@@ -239,6 +245,8 @@ namespace Dune {
typedef Y range_type;
//! \brief The field type of the preconditioner.
typedef typename X::field_type field_type;
//! \briefe The type of the communication object.
typedef C communication_type;
// define the category
enum {
......@@ -253,7 +261,7 @@ namespace Dune {
\param c The communication object for syncing overlap and copy
data points. (E.~g. OwnerOverlapCommunication )
*/
BlockPreconditioner (Preconditioner<X,Y>& p, const C& c)
BlockPreconditioner (Preconditioner<X,Y>& p, const communication_type& c)
: preconditioner(p), communication(c)
{ }
......@@ -294,7 +302,7 @@ namespace Dune {
Preconditioner<X,Y>& preconditioner;
//! \brief the communication object
const C& communication;
const communication_type& communication;
};
/** @} end documentation */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment