]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fix MGConstrainedDofs if n_levels!=n_global_levels
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Jun 2013 06:40:27 +0000 (06:40 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Jun 2013 06:40:27 +0000 (06:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@29886 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/multigrid/mg_constrained_dofs.h

index 5587527497f2d94a197341b1e84b9260cadb617e..6c58e891b19c96702ffd31f722ec79f1dbc3ff2a 100644 (file)
@@ -189,7 +189,7 @@ inline
 void
 MGConstrainedDoFs::initialize(const DoFHandler<dim,spacedim> &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<dim>::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);

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.