]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Adapt to Guido's changes.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Dec 1999 08:59:28 +0000 (08:59 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 8 Dec 1999 08:59:28 +0000 (08:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@1999 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/tutorial/chapter-1.elements/condense.html
deal.II/doc/tutorial/chapter-1.elements/matrix_structure.html

index 53ed6081e32c0f76b6ac04617f9ae55a4072c5b8..b8c3f1d080619a49b7e79c916c263154ce3f5066 100644 (file)
@@ -40,7 +40,8 @@ You will have to:
 <li>
 Create a global sparsity pattern (as described in the chapter on
 <a href="matrix_structure.html">matrix structure</a>) using 
-<code>void DoFHandler::make_sparsity_pattern(SparseMatrixStruct &amp;)</code></a>.
+<code>void DoFTools::make_sparsity_pattern(const DoFHandler&lt;dim&gt; &amp;,
+                                           SparseMatrixStruct &amp;)</code></a>.
 </li>
 <li>
 Create the constraints on the hanging nodes using 
@@ -70,6 +71,7 @@ function calls needed. Be sure to use them in their appropriate places.
 #include &lt;grid/dof.h&gt;
 #include &lt;lac/sparsematrix.h&gt;
 #include &lt;grid/dof_constraints.h&gt;
+#include &lt;basic/dof_tools.h&gt;
 
 const unsigned int dim=2; // Work in two dimensions, could also be three
 SparseMatrixStruct sparsity_pattern;
@@ -77,7 +79,7 @@ DoFHandler&lt;dim&gt; dof_handler;
 ConstraintMatrix hanging_nodes; 
 
 hanging_nodes.clear();
-dof_handler.make_sparsity_pattern(sparsity_pattern);
+DoFTools::make_sparsity_pattern(dof_handler, sparsity_pattern);
 dof_handler.make_hanging_nodes_constraints(hanging_nodes);
 hanging_nodes.close();
 hanging_nodes.condense(matrix_structure);
index a0b2546a4da9e879f5745f1748ac631b8eedc5af..397d677a46b106fc74f4c3e6cc6dd28ed5fe2fc0 100644 (file)
@@ -89,7 +89,7 @@ number of non-zero entries per row.
 After having fixed the basic properties of the sparsity structure, we
 can tell it which entries actually are non-zero. This is again done
 using a library function,
-<code>DoFHandler::make_sparsity_pattern</code>. Then we have to take
+<code>DoFTools::make_sparsity_pattern</code>. Then we have to take
 into account that constraints due to hanging nodes (see the previous
 chapter) add some more non-zero entries, which is again done using 
 some library functions (see the example below). After this, we can
@@ -120,6 +120,7 @@ appropriate places. This example initializes a sparse square matrix structure.
 <code>
 #include &lt;grid/dof.h&gt;
 #include &lt;lac/sparsematrix.h&gt;
+#include &lt;basic/dof_tools.h&gt;
 
 
 const unsigned int dim=2; // For example
@@ -137,7 +138,7 @@ sparsity_pattern.reinit (dof_handler.n_dofs(),
                          dof_handler.max_couplings_between_dofs());
 
 // tell the sparsity pattern which entries are non-zero:
-dof_handler.make_sparsity_pattern (sparsity_pattern); 
+make_sparsity_pattern (dof_handler, sparsity_pattern); 
 
 // Condense the <a href="hanging_nodes.html">hanging nodes</a> into
 // the matrix structure, taking into account the constraints due to
@@ -192,7 +193,7 @@ Finally, we note that in some cases not all variables in a system of
 partial differential equations couple to each other, or that the
 operators have a special structure. For this reason, there are more
 specialized version of the
-<code>DoFHandler::make_sparsity_pattern</code> and 
+<code>DoFTools::make_sparsity_pattern</code> and 
 <code>SparseMatrixStruct::reinit</code> functions, which allow you to
 more flexibly determine the actual number of non-zero elements of all
 or individual rows. See the documentation of the respective classes

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.