]> https://gitweb.dealii.org/ - dealii.git/commitdiff
multigrid: handle levels!=n_global_levels
authorTimo Heister <timo.heister@gmail.com>
Sun, 26 May 2013 16:33:03 +0000 (16:33 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sun, 26 May 2013 16:33:03 +0000 (16:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@29615 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_transfer_prebuilt.cc

index fcfd6e1dd5ba5342fa928ff8a92aca0ac9031f30..c8bb1f3095f0c99fd238ad5a30739c13fec61a59 100644 (file)
@@ -85,7 +85,7 @@ template <int dim, int spacedim>
 void MGTransferPrebuilt<VECTOR>::build_matrices (
   const DoFHandler<dim,spacedim>  &mg_dof)
 {
-  const unsigned int n_levels      = mg_dof.get_tria().n_levels();
+  const unsigned int n_levels      = mg_dof.get_tria().n_global_levels();
   const unsigned int dofs_per_cell = mg_dof.get_fe().dofs_per_cell;
 
   sizes.resize(n_levels);

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.