From 2612218bd09afc2e0d87576c54efbb815ae4c288 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 26 Jun 2000 08:35:22 +0000 Subject: [PATCH] Fix to places where @p was not used with {...}. git-svn-id: https://svn.dealii.org/trunk@3067 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/include/lac/precondition.h | 30 +++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/deal.II/lac/include/lac/precondition.h b/deal.II/lac/include/lac/precondition.h index 78389b5ad5..a12d0783a5 100644 --- a/deal.II/lac/include/lac/precondition.h +++ b/deal.II/lac/include/lac/precondition.h @@ -38,6 +38,7 @@ class PreconditionIdentity */ template void vmult (VECTOR&, const VECTOR&) const; + /** * Apply transpose * preconditioner. Since this is @@ -50,6 +51,7 @@ class PreconditionIdentity }; + /** * Preconditioner using a matrix-builtin function. * This class forms a preconditioner suitable for the LAC solver @@ -137,6 +139,7 @@ class PreconditionUseMatrix }; + /** * Base class for other preconditioners. * Here, only some common features Jacobi, SOR and SSOR preconditioners @@ -159,17 +162,21 @@ class PreconditionRelaxation * reasons. It defaults to 1. */ void initialize (const MATRIX& A, const double omega = 1.); + protected: /** * Pointer to the matrix object. */ SmartPointer A; + /** * Relaxation parameter. */ double omega; }; + + /** * Jacobi preconditioner using matrix built-in function. The MATRIX * class used is required to have a function @@ -215,6 +222,7 @@ class PreconditionSOR : public PreconditionRelaxation */ template void vmult (VECTOR&, const VECTOR&) const; + /** * Apply transpose * preconditioner. @@ -224,6 +232,7 @@ class PreconditionSOR : public PreconditionRelaxation }; + /** * SSOR preconditioner using matrix built-in function. The MATRIX * class used is required to have a function @@ -240,6 +249,7 @@ class PreconditionSSOR : public PreconditionRelaxation */ template void vmult (VECTOR&, const VECTOR&) const; + /** * Apply transpose * preconditioner. Since this is @@ -263,7 +273,7 @@ class PreconditionSSOR : public PreconditionRelaxation * * @author Guido Kanschat, 1999 */ -template, class PRECONDITION = PreconditionIdentity> +template, class PRECONDITION = PreconditionIdentity> class PreconditionLACSolver { public: @@ -275,6 +285,7 @@ class PreconditionLACSolver PreconditionLACSolver(SOLVER&, const MATRIX&, const PRECONDITION&); + /** * Execute preconditioning. */ @@ -286,10 +297,12 @@ class PreconditionLACSolver * The solver class to use. */ SOLVER& solver; + /** * The matrix in use. */ const MATRIX& matrix; + /** * The preconditioner to use. */ @@ -297,14 +310,15 @@ class PreconditionLACSolver }; + /** * Matrix with preconditioner. * Given a matrix $A$ and a preconditioner $P$, this class implements a new matrix * with the matrix-vector product $PA$. It needs an auxiliary vector for that. * * By this time, this is considered a temporary object to be plugged - * into eigenvalue solvers. Therefore, no @p SmartPointer is used for - * @p A and @p P. + * into eigenvalue solvers. Therefore, no @p{SmartPointer} is used for + * @p{A} and @p{P}. * * @author Guido Kanschat, 2000 */ @@ -366,6 +380,8 @@ PreconditionIdentity::vmult (VECTOR& dst, const VECTOR& src) const dst = src; } + + template inline void PreconditionIdentity::Tvmult (VECTOR& dst, const VECTOR& src) const @@ -395,6 +411,7 @@ PreconditionJacobi::vmult (VECTOR& dst, const VECTOR& src) const } + template template inline void @@ -417,6 +434,7 @@ PreconditionSOR::vmult (VECTOR& dst, const VECTOR& src) const } + template template inline void @@ -439,6 +457,7 @@ PreconditionSSOR::vmult (VECTOR& dst, const VECTOR& src) const } + template template inline void @@ -460,6 +479,7 @@ PreconditionUseMatrix::PreconditionUseMatrix(const MATRIX& M, {} + template void PreconditionUseMatrix::vmult (VECTOR& dst, @@ -479,6 +499,8 @@ PreconditionLACSolver solver(solver), matrix(matrix), precondition(precondition) {} + + template template void @@ -515,6 +537,7 @@ PreconditionedMatrix } + template inline void PreconditionedMatrix @@ -529,6 +552,7 @@ PreconditionedMatrix } + template inline double PreconditionedMatrix -- 2.39.5