]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do not worry too much about the 1d case -- everything is cheap there.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Dec 2012 00:58:50 +0000 (00:58 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 31 Dec 2012 00:58:50 +0000 (00:58 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_deprecated@27878 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vector_tools.templates.h

index fad52b0d39113e84669abebd383690878ac21154..5493caa95f3675a21a6f246473738d1305373759 100644 (file)
@@ -2140,17 +2140,20 @@ namespace VectorTools
     DoFTools::map_dof_to_boundary_indices (dof, selected_boundary_components,
                                            dof_to_boundary_mapping);
 
-    // Done if no degrees of freedom on
-    // the boundary
+    // Done if no degrees of freedom on the boundary
     if (dof.n_boundary_dofs (boundary_functions) == 0)
       return;
+
     // set up sparsity structure
-    SparsityPattern sparsity(dof.n_boundary_dofs (boundary_functions),
-                             dof.max_couplings_between_boundary_dofs());
+    CompressedSparsityPattern c_sparsity(dof.n_dofs());
     DoFTools::make_boundary_sparsity_pattern (dof,
                                               boundary_functions,
                                               dof_to_boundary_mapping,
-                                              sparsity);
+                                              c_sparsity);
+    SparsityPattern sparsity;
+    sparsity.copy_from(c_sparsity);
+
+
 
     // note: for three or more dimensions, there
     // may be constrained nodes on the boundary

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.