From: Martin Kronbichler Date: Fri, 14 Jun 2013 06:19:20 +0000 (+0000) Subject: Fix bug. X-Git-Tag: v8.0.0~291 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4307b6be39e6c7a6a15325cc2950dd5a9ba2fa7c;p=dealii.git Fix bug. git-svn-id: https://svn.dealii.org/trunk@29818 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_renumbering.cc b/deal.II/source/dofs/dof_renumbering.cc index 0d0410bdb6..b81ce30bfb 100644 --- a/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/source/dofs/dof_renumbering.cc @@ -442,8 +442,8 @@ namespace DoFRenumbering SparsityPattern sparsity; if (DH::dimension < 2) { - sparsity.reinit (dof_handler.n_dofs(), - dof_handler.n_dofs(), + sparsity.reinit (dof_handler.n_dofs(level), + dof_handler.n_dofs(level), dof_handler.max_couplings_between_dofs()); MGTools::make_sparsity_pattern (dof_handler, sparsity, level); sparsity.compress();