]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add documentation.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Apr 2006 20:18:33 +0000 (20:18 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 24 Apr 2006 20:18:33 +0000 (20:18 +0000)
git-svn-id: https://svn.dealii.org/trunk@12866 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/precondition.h

index 9513a4b8d4956ad3eff4e3f413698d98cb5bd52f..832446b4b01f6fb522bd22ba530cd909a775c453 100644 (file)
@@ -31,7 +31,20 @@ template <typename number> class SparseMatrix;
  * No preconditioning.  This class helps you, if you want to use a
  * linear solver without preconditioning. All solvers in LAC require a
  * preconditioner. Therefore, you must use the identity provided here
- * to avoid preconditioning.
+ * to avoid preconditioning. It can be used in the following way:
+ *
+ @verbatim
+  SolverControl           solver_control (1000, 1e-12);
+  SolverCG<>              cg (solver_control);
+  cg.solve (system_matrix, solution, system_rhs,
+           PreconditionIdentity());
+ @endverbatim
+ *
+ * See the @ref step_3 "step-3" tutorial program for an example and
+ * additional explanations.
+ *
+ * Alternatively, the IdentityMatrix class can be used to precondition
+ * in this way.
  *
  * @author Guido Kanschat, 1999
  */

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.