]> https://gitweb.dealii.org/ - dealii.git/commitdiff
multigrid copy_indices maybe more correct now?
authorTimo Heister <timo.heister@gmail.com>
Mon, 27 May 2013 13:47:17 +0000 (13:47 +0000)
committerTimo Heister <timo.heister@gmail.com>
Mon, 27 May 2013 13:47:17 +0000 (13:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@29646 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_transfer_prebuilt.cc

index d16733ea0e8f62691cad706fa95e23f7a097b542..66dfb218c552143c4d0c00e49765e92237fb290a 100644 (file)
@@ -249,7 +249,7 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
 
   std::vector<unsigned int> global_dof_indices (dofs_per_cell);
   std::vector<unsigned int> level_dof_indices  (dofs_per_cell);
-  for (unsigned int level=0; level<mg_dof.get_tria().n_levels(); ++level)
+  for (int level=mg_dof.get_tria().n_levels()-1; level>=0; --level)
     {
       copy_indices[level].clear();
       copy_indices_from_me[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.