]> https://gitweb.dealii.org/ - dealii.git/commitdiff
changed back to the global dof index with shift
authorBaerbel Jannsen <baerbel.janssen@gmail.com>
Thu, 4 Mar 2010 00:49:19 +0000 (00:49 +0000)
committerBaerbel Jannsen <baerbel.janssen@gmail.com>
Thu, 4 Mar 2010 00:49:19 +0000 (00:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@20737 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_transfer_component.cc

index 2a5d4d58f9c23125bf45330ac7faad2b0081691a..0fbeacf72e7c604935ea34fbc7588eb5df9bf579 100644 (file)
@@ -647,8 +647,10 @@ void MGTransferSelect<number>::build_matrices (
                {
                  const unsigned int level_start
                    = mg_component_start[level][mg_target_component[component]];
-                 temp_copy_indices[level_dof_indices[i]-level_start] =
-                   global_dof_indices[i];
+                 const unsigned int global_start
+                   = component_start[target_component[component]];
+                 temp_copy_indices[level_dof_indices[i]-level_start] = 
+                   global_dof_indices[i] - global_start;
                }
            }
        }

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.