From: Timo Heister Date: Tue, 25 Jun 2013 06:40:27 +0000 (+0000) Subject: fix MGConstrainedDofs if n_levels!=n_global_levels X-Git-Tag: v8.0.0~232 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a15e47aeb0c70fa12c52a527cf41f63b4bd43754;p=dealii.git fix MGConstrainedDofs if n_levels!=n_global_levels git-svn-id: https://svn.dealii.org/trunk@29886 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h b/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h index 5587527497..6c58e891b1 100644 --- a/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h +++ b/deal.II/include/deal.II/multigrid/mg_constrained_dofs.h @@ -189,7 +189,7 @@ inline void MGConstrainedDoFs::initialize(const DoFHandler &dof) { - const unsigned int nlevels = dof.get_tria().n_levels(); + const unsigned int nlevels = dof.get_tria().n_global_levels(); refinement_edge_indices.resize(nlevels); refinement_edge_boundary_indices.resize(nlevels); non_refinement_edge_indices.resize(nlevels); @@ -213,7 +213,7 @@ MGConstrainedDoFs::initialize( const typename FunctionMap::type &function_map, const ComponentMask &component_mask) { - const unsigned int nlevels = dof.get_tria().n_levels(); + const unsigned int nlevels = dof.get_tria().n_global_levels(); boundary_indices.resize(nlevels); refinement_edge_indices.resize(nlevels); refinement_edge_boundary_indices.resize(nlevels);