]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compute_intergrid_weights_3
authorAlexander Grayver <agrayver@erdw.ethz.ch>
Mon, 19 Oct 2015 10:24:22 +0000 (12:24 +0200)
committerAlexander Grayver <agrayver@erdw.ethz.ch>
Mon, 19 Oct 2015 10:24:22 +0000 (12:24 +0200)
source/dofs/dof_tools_constraints.cc

index 7859ed3ab5ee8d50cbfcdebf9453078e1aada6f1..8c19ba84cb2fa88fbecfb0a216e1a0e0e93ffb6c 100644 (file)
@@ -2584,7 +2584,6 @@ namespace DoFTools
 
         // loop over all dofs on this cell and check whether they are
         // interesting for us
-        unsigned int pos = 0;
         for (unsigned int local_dof=0; local_dof<copy_data.dofs_per_cell; ++local_dof)
           if (coarse_fe.system_to_component_index(local_dof).first
               ==
@@ -2594,19 +2593,18 @@ namespace DoFTools
               const unsigned int local_parameter_dof
                 = coarse_fe.system_to_component_index(local_dof).second;
 
-              copy_data.global_parameter_representation[local_dof] = 0.;
+              copy_data.global_parameter_representation[local_parameter_dof] = 0.;
 
               // distribute the representation of
               // @p{local_parameter_dof} on the parameter grid cell
               // @p{cell} to the global data space
               coarse_to_fine_grid_map[cell]->
               set_dof_values_by_interpolation (parameter_dofs[local_parameter_dof],
-                                               copy_data.global_parameter_representation[pos]);
+                                               copy_data.global_parameter_representation[local_parameter_dof]);
 
 #ifdef DEAL_II_WITH_MPI
-              copy_data.global_parameter_representation[pos].update_ghost_values ();
+              copy_data.global_parameter_representation[local_parameter_dof].update_ghost_values ();
 #endif
-              ++pos;
             }
       }
 

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.