]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Clarify one comment. Make sure all values in a table are explicitly initialized.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 29 Apr 2009 16:38:22 +0000 (16:38 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 29 Apr 2009 16:38:22 +0000 (16:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@18794 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_tools.h

index cdc2086ed137b57ecfd85cf0b6b8e726268055e5..f28d2ecf830a01840d052d4cd247a47ec8cfa15b 100644 (file)
@@ -617,8 +617,13 @@ class DoFTools
                                      * @deprecated This is the old
                                      * form of the previous
                                      * function. It generates a table
-                                     * of DoFTools::Coupling values and calls
-                                     * it.
+                                     * of DoFTools::Coupling values
+                                     * (where a <code>true</code>
+                                     * value in the mask is
+                                     * translated into a
+                                     * Coupling::always value in the
+                                     * table) and calls the function
+                                     * above.
                                      */
     template <class DH, class SparsityPattern>
     static
@@ -2007,10 +2012,9 @@ DoFTools::fe_is_primitive (const hp::DoFHandler<dim,spacedim> &dh)
 template <class DH, class SparsityPattern>
 inline
 void
-DoFTools::make_sparsity_pattern (
-  const DH                              &dof,
-  const std::vector<std::vector<bool> > &mask,
-  SparsityPattern                       &sparsity_pattern)
+DoFTools::make_sparsity_pattern (const DH                              &dof,
+                                const std::vector<std::vector<bool> > &mask,
+                                SparsityPattern                       &sparsity_pattern)
 {
   const unsigned int ncomp = dof.get_fe().n_components();
   
@@ -2025,6 +2029,9 @@ DoFTools::make_sparsity_pattern (
     for (unsigned int j=0;j<ncomp;++j)
       if (mask[i][j])
        couplings(i,j) = always;
+      else
+       couplings(i,j) = none;
+  
                                   // Call the new function
   make_sparsity_pattern(dof, couplings, sparsity_pattern);
 }

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.