]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Some more tiny comments changes.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 28 Aug 2009 10:42:01 +0000 (10:42 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Fri, 28 Aug 2009 10:42:01 +0000 (10:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@19350 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-16/step-16.cc

index ddb02b38169edfb5f0e17f02a129200ef285a0cd..cf92a5ae1db6bc941507fe59783c9be71f9569db 100644 (file)
@@ -3,7 +3,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors */
+/*    Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -94,17 +94,17 @@ class LaplaceProblem
 
     Triangulation<dim>   triangulation;
     FE_Q<dim>            fe;
-    MGDoFHandler<dim>      mg_dof_handler;
+    MGDoFHandler<dim>    mg_dof_handler;
 
     SparsityPattern      sparsity_pattern;
     SparseMatrix<double> system_matrix;
 
                                     // Here are the new objects for
-                                    // handling level matrices.
-    MGLevelObject<SparsityPattern> mg_sparsity;
-                                    // We use number type float to
-                                    // save memory. It's only a
-                                    // preconditioner!
+                                    // handling level matrices: sparsity
+                                    // patterns and matrices. We use number
+                                    // type float to save memory. It's only
+                                    // a preconditioner!
+    MGLevelObject<SparsityPattern>      mg_sparsity;
     MGLevelObject<SparseMatrix<float> > mg_matrices;
     
     Vector<double>       solution;
@@ -112,6 +112,7 @@ class LaplaceProblem
 };
 
 
+
                                 // This function is as before.
 template <int dim>
 LaplaceProblem<dim>::LaplaceProblem () :
@@ -159,13 +160,13 @@ void LaplaceProblem<dim>::setup_system ()
                                   // now but may change in a future
                                   // revision). Remark, that the
                                   // finest level is nlevels-1.
-  const unsigned int nlevels = triangulation.n_levels();
                                   // We first have to resize the
                                   // container holding the
                                   // SparseMatrix classes, since they
                                   // have to release their
                                   // SparsityPattern before it can be
                                   // destroyed.
+  const unsigned int nlevels = triangulation.n_levels();
   mg_matrices.resize(0, nlevels-1);
   mg_sparsity.resize(0, nlevels-1);
 

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.