From a15e47aeb0c70fa12c52a527cf41f63b4bd43754 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 25 Jun 2013 06:40:27 +0000 Subject: [PATCH] fix MGConstrainedDofs if n_levels!=n_global_levels git-svn-id: https://svn.dealii.org/trunk@29886 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/multigrid/mg_constrained_dofs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5