]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify a resize statement. 6526/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 May 2018 10:34:18 +0000 (18:34 +0800)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 8 May 2018 10:46:08 +0000 (18:46 +0800)
In particular, it is not necessary to actually copy the data of the
template vector here -- we really only care about its size.

include/deal.II/numerics/data_out_dof_data.templates.h

index 7767c38391eec1d1461040a322fb8768e9e916f6..681473231e8b0f3e68afe438db80c4651c7d0605 100644 (file)
@@ -653,7 +653,7 @@ namespace internal
         {
           std::vector<dealii::Vector<typename VectorType::value_type> > tmp(patch_values_system.size());
           for (unsigned int i = 0; i < patch_values_system.size(); i++)
-            tmp[i].reinit(patch_values_system[i]);
+            tmp[i].reinit(patch_values_system[i].size());
 
           fe_patch_values.get_function_values (*vector, tmp);
 

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.