]> https://gitweb.dealii.org/ - dealii.git/commitdiff
localize flux sparsity pattern on refinement edges
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 24 Jun 2013 13:38:21 +0000 (13:38 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Mon, 24 Jun 2013 13:38:21 +0000 (13:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@29876 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/multigrid/mg_tools.cc

index 752b9462483d32c0ae355b5c7fe1830cb285f8c3..b5e79e3f9e7a771ae14766a7d85a421dcb2a76be 100644 (file)
@@ -654,6 +654,8 @@ namespace MGTools
                                                      endc = dof.end(level);
     for (; cell!=endc; ++cell)
       {
+       if (!cell->is_locally_owned_on_level()) continue;
+       
         cell->get_mg_dof_indices (dofs_on_this_cell);
         // Loop over all interior neighbors
         for (unsigned int face = 0;
@@ -742,7 +744,9 @@ namespace MGTools
 
     for (; cell!=endc; ++cell)
       {
-        cell->get_mg_dof_indices (dofs_on_this_cell);
+       if (!cell->is_locally_owned_on_level()) continue;
+       
+       cell->get_mg_dof_indices (dofs_on_this_cell);
         // make sparsity pattern for this cell
         for (unsigned int i=0; i<total_dofs; ++i)
           for (unsigned int j=0; j<total_dofs; ++j)
@@ -908,6 +912,8 @@ namespace MGTools
 
     for (; cell!=endc; ++cell)
       {
+       if (!cell->is_locally_owned_on_level()) continue;
+       
         cell->get_mg_dof_indices (dofs_on_this_cell);
         // Loop over all interior neighbors
         for (unsigned int face = 0;

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.