]> https://gitweb.dealii.org/ - dealii.git/commitdiff
clean up level loop
authorTimo Heister <timo.heister@gmail.com>
Mon, 4 Aug 2014 17:29:41 +0000 (13:29 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 4 Aug 2014 17:29:41 +0000 (13:29 -0400)
source/multigrid/mg_transfer_prebuilt.cc

index 18e771e7a4ee48a75e91706ba8bc21fab268a37d..6639b92252cad06a0c610945ad9fa312fbf4f988 100644 (file)
@@ -276,8 +276,8 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
 
   std::vector<types::global_dof_index> global_dof_indices (dofs_per_cell);
   std::vector<types::global_dof_index> level_dof_indices  (dofs_per_cell);
-  //  for (int level=mg_dof.get_tria().n_levels()-1; level>=0; --level)
-  for (unsigned int level=0; level<mg_dof.get_tria().n_levels(); ++level)
+
+  for (unsigned int level=0; level<n_levels; ++level)
     {
       std::vector<bool> dof_touched(globally_relevant.n_elements(), false);
       copy_indices[level].clear();

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.