]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fill new copy_indices correctly
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 12:40:22 +0000 (12:40 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 May 2013 12:40:22 +0000 (12:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@29642 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_transfer_prebuilt.cc

index 974a082b30c0b34230e2f200d35716bca088c840..31e5ac483791b483629f04f95c24238860c54bd6 100644 (file)
@@ -290,10 +290,10 @@ void MGTransferPrebuilt<VECTOR>::build_matrices (
               if (global_mine && level_mine)
                 copy_indices[level].push_back(
                     std::pair<unsigned int, unsigned int> (global_dof_indices[i], level_dof_indices[i]));
-              else if (!global_mine)
+              else if (level_mine)
                 copy_indices_from_me[level].push_back(
                     std::pair<unsigned int, unsigned int> (global_dof_indices[i], level_dof_indices[i]));
-              else
+              else if (global_mine)
                 copy_indices_to_me[level].push_back(
                     std::pair<unsigned int, unsigned int> (global_dof_indices[i], level_dof_indices[i]));
             }

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.