From 89c9bd13a1445a09ac0c4aa272ee58fe759bb69c Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 11 May 2015 15:46:00 -0500 Subject: [PATCH] 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. --- source/numerics/data_out_dof_data.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5