]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Even in 2D, it is faster to first create a CSP and then reinit the SP.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 4 May 2009 07:16:15 +0000 (07:16 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 4 May 2009 07:16:15 +0000 (07:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@18807 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_renumbering.cc

index 5435c21577ffdc079bdc06ebd5f4c8a93e0c1d08..67d3c395267811e3169fc0cfaf42f4c92ae3cddc 100644 (file)
@@ -444,13 +444,13 @@ namespace DoFRenumbering
     constraints.close ();
     
     SparsityPattern sparsity;
-    if (DH::dimension <= 2)
+    if (DH::dimension < 2)
       {
        sparsity.reinit (dof_handler.n_dofs(),
                         dof_handler.n_dofs(),
                         dof_handler.max_couplings_between_dofs());
-       DoFTools::make_sparsity_pattern (dof_handler, sparsity);
-       constraints.condense (sparsity);
+       DoFTools::make_sparsity_pattern (dof_handler, sparsity, constraints);
+       sparsity.compress();
       }
     else
       {

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.