]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix size of a temporary array. 926/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 11 May 2015 20:46:00 +0000 (15:46 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 11 May 2015 20:46:00 +0000 (15:46 -0500)
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

index bb5bb5c8c9f0a6ad2ff3f5efd348ff8d4c46dcf9..535cba6bb9d0c6172328fc75fef2f500ad034282 100644 (file)
@@ -608,7 +608,7 @@ namespace internal
       // least make sure we can deal with complex numbers
       std::vector<std::vector<Tensor<1,DH::space_dimension,typename VectorType::value_type> > > 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);
 

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.