From: Wolfgang Bangerth Date: Mon, 11 May 2015 20:46:00 +0000 (-0500) Subject: Fix size of a temporary array. X-Git-Tag: v8.3.0-rc1~180^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c9bd13a1445a09ac0c4aa272ee58fe759bb69c;p=dealii.git Fix size of a temporary array. This was broken in the generic-FEValues patch the other day. It manifested in an erroneous assertion in one of my students programs while trying out what they had implemented over the course of the semester. --- diff --git a/source/numerics/data_out_dof_data.cc b/source/numerics/data_out_dof_data.cc index bb5bb5c8c9..535cba6bb9 100644 --- a/source/numerics/data_out_dof_data.cc +++ b/source/numerics/data_out_dof_data.cc @@ -608,7 +608,7 @@ namespace internal // least make sure we can deal with complex numbers std::vector > > tmp(patch_gradients_system.size()); for (unsigned int i = 0; i < tmp.size(); i++) - tmp[i].resize(patch_gradients_system.size()); + tmp[i].resize(patch_gradients_system[i].size()); fe_patch_values.get_function_gradients (*vector, tmp);