From: Wolfgang Bangerth Date: Tue, 8 May 2018 10:34:18 +0000 (+0800) Subject: Simplify a resize statement. X-Git-Tag: v9.1.0-rc1~1172^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6526%2Fhead;p=dealii.git Simplify a resize statement. In particular, it is not necessary to actually copy the data of the template vector here -- we really only care about its size. --- diff --git a/include/deal.II/numerics/data_out_dof_data.templates.h b/include/deal.II/numerics/data_out_dof_data.templates.h index 7767c38391..681473231e 100644 --- a/include/deal.II/numerics/data_out_dof_data.templates.h +++ b/include/deal.II/numerics/data_out_dof_data.templates.h @@ -653,7 +653,7 @@ namespace internal { std::vector > 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);