]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
change wrong assertions
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 15:12:05 +0000 (15:12 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jun 2013 15:12:05 +0000 (15:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@29880 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_tools.cc

index b5e79e3f9e7a771ae14766a7d85a421dcb2a76be..6aa349f79e2c5f675e777dd3908ffdfa52fe3720 100644 (file)
@@ -634,8 +634,8 @@ namespace MGTools
     SparsityPattern       &sparsity,
     const unsigned int level)
   {
-    Assert ((level>=1) && (level<dof.get_tria().n_levels()),
-            ExcIndexRange(level, 1, dof.get_tria().n_levels()));
+    Assert ((level>=1) && (level<dof.get_tria().n_global_levels()),
+            ExcIndexRange(level, 1, dof.get_tria().n_global_levels()));
 
     const types::global_dof_index fine_dofs = dof.n_dofs(level);
     const types::global_dof_index coarse_dofs = dof.n_dofs(level-1);
@@ -878,8 +878,8 @@ namespace MGTools
     const FiniteElement<dim> &fe = dof.get_fe();
     const unsigned int n_comp = fe.n_components();
 
-    Assert ((level>=1) && (level<dof.get_tria().n_levels()),
-            ExcIndexRange(level, 1, dof.get_tria().n_levels()));
+    Assert ((level>=1) && (level<dof.get_tria().n_global_levels()),
+            ExcIndexRange(level, 1, dof.get_tria().n_global_levels()));
 
     const types::global_dof_index fine_dofs = dof.n_dofs(level);
     const types::global_dof_index coarse_dofs = dof.n_dofs(level-1);

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.