]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify code in a minor way.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 Sep 2013 22:25:49 +0000 (22:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 2 Sep 2013 22:25:49 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@30559 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_accessor.templates.h

index 4cef5607b27935566c4a72a342b7a357882af14c..0a6ce9538cff2aa5b0e7d04c4c4b914ab21ffa7e 100644 (file)
@@ -2836,9 +2836,8 @@ namespace internal
         std::vector<types::global_dof_index> local_dof_indices (dofs_per_cell);
         get_dof_indices (accessor, local_dof_indices);
 
-        types::global_dof_index* local_indices_begin = &(local_dof_indices[0]);
-        values.extract_subvector_to (local_indices_begin,
-                                    local_indices_begin + dofs_per_cell,
+        values.extract_subvector_to (local_dof_indices.begin(),
+                                    local_dof_indices.end(),
                                     local_values_begin);
       }
 

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.